Skip to content

Commit

Permalink
update typings for react-native-modal-filter-picker (DefinitelyTyped#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-zg authored and uniqueiniquity committed Sep 27, 2019
1 parent d66a4af commit 877a5c9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions types/react-native-modal-filter-picker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
// Project: https://github.com/hiddentao/react-native-modal-filter-picker#readme
// Definitions by: Chang Yanwei <https://github.com/ywchang>
// Cheng Gibson <https://github.com/nossbigg>
// Zheng Arnaud <https://github.com/arnaud-zg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';
import { StyleProp, ViewStyle, TextStyle, KeyboardAvoidingView, ModalProps, ListViewProps } from 'react-native';
import {
StyleProp,
ViewStyle,
TextStyle,
KeyboardAvoidingView,
ModalProps,
ListViewProps,
FlatListProps,
} from 'react-native';

export interface ModalFilterPickerOption {
label: string;
Expand All @@ -27,15 +36,15 @@ export interface ModalFilterPickerProps<T extends ModalFilterPickerOption> {
showFilter?: boolean;
modal?: ModalProps;
selectedOption?: string;
listViewProps?: Partial<ListViewProps>;
listViewProps?: Partial<ListViewProps | FlatListProps<T>>;
renderOption?: (option: T, isSelected: boolean) => JSX.Element;
renderList?: () => JSX.Element;
renderCancelButton?: () => JSX.Element;
keyboardShouldPersistTaps?: 'never' | 'always' | 'handle';
autoFocus?: boolean;

// styling props
overlayStyle?: StyleProp<KeyboardAvoidingView>;
overlayStyle?: StyleProp<KeyboardAvoidingView | ViewStyle>;
listContainerStyle?: StyleProp<ViewStyle>;
filterTextInputContainerStyle?: StyleProp<ViewStyle>;
filterTextInputStyle?: StyleProp<TextStyle>;
Expand Down

0 comments on commit 877a5c9

Please sign in to comment.