Skip to content

Commit 425736b

Browse files
stackiaalvaromb
authored andcommitted
Add KeyboardAwareFlatList to index.d.ts (#187)
1 parent 6e78a02 commit 425736b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

index.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// TypeScript Version: 2.3.2
55

66
import * as React from 'react'
7-
import { ScrollViewProperties, ListViewProperties } from 'react-native'
7+
import { ScrollViewProperties, ListViewProperties, FlatListProperties } from 'react-native'
88

99
interface KeyboardAwareProps {
1010
/**
@@ -47,7 +47,7 @@ interface KeyboardAwareProps {
4747
* @memberof KeyboardAwareProps
4848
*/
4949
enableAutoAutomaticScroll?: boolean
50-
50+
5151
/**
5252
* Enables keyboard aware settings for Android
5353
*
@@ -95,6 +95,9 @@ interface KeyboardAwareListViewProps
9595
interface KeyboardAwareScrollViewProps
9696
extends KeyboardAwareProps,
9797
ScrollViewProperties {}
98+
interface KeyboardAwareFlatListProps<ItemT>
99+
extends KeyboardAwareProps,
100+
FlatListProperties<ItemT> {}
98101

99102
interface KeyboardAwareState {
100103
keyboardSpace: number
@@ -109,3 +112,7 @@ export class KeyboardAwareScrollView extends React.Component<
109112
KeyboardAwareScrollViewProps,
110113
KeyboardAwareState
111114
> {}
115+
export class KeyboardAwareFlatList extends React.Component<
116+
KeyboardAwareFlatListProps<any>,
117+
KeyboardAwareState
118+
> {}

0 commit comments

Comments
 (0)