Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ import * as React from 'react'
import {
ScrollViewProps,
FlatListProps,
SectionListProps
SectionListProps,
ScrollView,
FlatList,
SectionList
} from 'react-native'

interface KeyboardAwareProps {
interface KeyboardAwareProps<E extends JSX.Element> {
/**
* Catches the reference of the component.
*
*
* @type {function}
* @memberof KeyboardAwareProps
*/
innerRef?: (ref: JSX.Element) => void
innerRef?: (ref: E) => void
/**
* Adds an extra offset that represents the TabBarIOS height.
*
Expand Down Expand Up @@ -144,13 +147,13 @@ interface KeyboardAwareProps {
}

interface KeyboardAwareScrollViewProps
extends KeyboardAwareProps,
extends KeyboardAwareProps<ScrollView>,
ScrollViewProps {}
interface KeyboardAwareFlatListProps<ItemT>
extends KeyboardAwareProps,
extends KeyboardAwareProps<FlatList>,
FlatListProps<ItemT> {}
interface KeyboardAwareSectionListProps<ItemT>
extends KeyboardAwareProps,
extends KeyboardAwareProps<SectionList>,
SectionListProps<ItemT> {}

interface KeyboardAwareState {
Expand Down