From 22530cadc56fa94f7ee8aaf04736f1a6c2e35d03 Mon Sep 17 00:00:00 2001 From: Stackie Jia Date: Sun, 29 Oct 2017 12:20:34 -0500 Subject: [PATCH] Add KeyboardAwareFlatList to index.d.ts --- index.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index d5f2fd4..4d13e4b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,7 @@ // TypeScript Version: 2.3.2 import * as React from 'react' -import { ScrollViewProperties, ListViewProperties } from 'react-native' +import { ScrollViewProperties, ListViewProperties, FlatListProperties } from 'react-native' interface KeyboardAwareProps { /** @@ -47,7 +47,7 @@ interface KeyboardAwareProps { * @memberof KeyboardAwareProps */ enableAutoAutomaticScroll?: boolean - + /** * Enables keyboard aware settings for Android * @@ -95,6 +95,9 @@ interface KeyboardAwareListViewProps interface KeyboardAwareScrollViewProps extends KeyboardAwareProps, ScrollViewProperties {} +interface KeyboardAwareFlatListProps + extends KeyboardAwareProps, + FlatListProperties {} interface KeyboardAwareState { keyboardSpace: number @@ -109,3 +112,7 @@ export class KeyboardAwareScrollView extends React.Component< KeyboardAwareScrollViewProps, KeyboardAwareState > {} +export class KeyboardAwareFlatList extends React.Component< +KeyboardAwareFlatListProps, +KeyboardAwareState +> {}