forked from lawnstarter/react-native-picker-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
35 lines (34 loc) · 1013 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// <reference types="react" />
declare module 'react-native-picker-select' {
export interface Item {
label: string;
value: any;
key?: string | number;
color?: string;
}
export interface PickerProps {
onValueChange: (value: any, index: number) => void;
items: Item[];
value?: any;
placeholder?: Item | {};
disabled?: boolean;
itemKey?: string | number;
style?: object;
children?: any;
placeholderTextColor?: string;
useNativeAndroidPickerStyle?: boolean;
hideDoneBar?: boolean;
doneText?: string;
onDonePress?: () => void;
onUpArrow?: () => void;
onDownArrow?: () => void;
onOpen?: () => void;
onClose?: () => void;
modalProps?: object;
textInputProps?: object;
pickerProps?: object;
Icon?: React.ReactNode;
}
class Picker extends React.Component<PickerProps> {}
export default Picker;
}