Skip to content

Add KeyboardAwareFlatList to index.d.ts #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2018
Merged
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
11 changes: 9 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -47,7 +47,7 @@ interface KeyboardAwareProps {
* @memberof KeyboardAwareProps
*/
enableAutoAutomaticScroll?: boolean

/**
* Enables keyboard aware settings for Android
*
Expand Down Expand Up @@ -95,6 +95,9 @@ interface KeyboardAwareListViewProps
interface KeyboardAwareScrollViewProps
extends KeyboardAwareProps,
ScrollViewProperties {}
interface KeyboardAwareFlatListProps<ItemT>
extends KeyboardAwareProps,
FlatListProperties<ItemT> {}

interface KeyboardAwareState {
keyboardSpace: number
Expand All @@ -109,3 +112,7 @@ export class KeyboardAwareScrollView extends React.Component<
KeyboardAwareScrollViewProps,
KeyboardAwareState
> {}
export class KeyboardAwareFlatList extends React.Component<
KeyboardAwareFlatListProps<any>,
KeyboardAwareState
> {}