forked from victorzimnikov/ReactNativeWheelPicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
40 lines (35 loc) · 984 Bytes
/
index.tsx
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
36
37
38
39
40
// @ts-ignore
import WheelPicker from './src/WheelPicker'
// @ts-ignore
import TimePicker from './src/TimePicker'
// @ts-ignore
import DatePicker from './src/DatePicker'
import { Picker, PickerIOS } from "@react-native-picker/picker";
import { StyleProp, TextStyle } from "react-native";
export type ItemValue = number | string;
export interface PickerItemProps<T = ItemValue> {
label?: string;
value?: T;
color?: string;
fontFamily?: string;
testID?: string;
/**
* Style to apply to individual item labels.
* Only following values take effect:
* - 'color'
* - 'backgroundColor'
* - 'fontSize'
* - 'fontFamily'
*
* @platform android
*/
style?: StyleProp<TextStyle>;
/**
* If set to false, the specific item will be disabled, i.e. the user will not be able to make a
* selection.
* @default true
* @platform android | web
*/
enabled?: boolean;
}
export { WheelPicker, TimePicker, DatePicker, Picker, PickerIOS }