diff --git a/index.d.ts b/index.d.ts index bf03b26..0981300 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,10 +7,13 @@ import * as React from 'react' import { ScrollViewProps, FlatListProps, - SectionListProps + SectionListProps, + ScrollView, + FlatList, + SectionList } from 'react-native' -interface KeyboardAwareProps { +interface KeyboardAwareProps { /** * Catches the reference of the component. * @@ -18,7 +21,7 @@ interface KeyboardAwareProps { * @type {function} * @memberof KeyboardAwareProps */ - innerRef?: (ref: JSX.Element) => void + innerRef?: (ref: E) => void /** * Adds an extra offset that represents the TabBarIOS height. * @@ -144,13 +147,13 @@ interface KeyboardAwareProps { } interface KeyboardAwareScrollViewProps - extends KeyboardAwareProps, + extends KeyboardAwareProps, ScrollViewProps {} interface KeyboardAwareFlatListProps - extends KeyboardAwareProps, + extends KeyboardAwareProps, FlatListProps {} interface KeyboardAwareSectionListProps - extends KeyboardAwareProps, + extends KeyboardAwareProps, SectionListProps {} interface KeyboardAwareState {