-
Notifications
You must be signed in to change notification settings - Fork 314
Expand file tree
/
Copy pathtypes.js
More file actions
48 lines (46 loc) · 1.18 KB
/
types.js
File metadata and controls
48 lines (46 loc) · 1.18 KB
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
41
42
43
44
45
46
47
48
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
export type PickerAndroidChangeEvent = SyntheticEvent<
$ReadOnly<{|
position: number,
|}>,
>;
export type PickerItem = $ReadOnly<{|
label: string,
value: ?(number | string),
color?: ?number,
fontFamily: ?string,
/**
* Style to apply to individual item labels.
* Only following values take effect:
* - 'color'
* - 'backgroundColor'
* - 'fontSize'
* - 'fontFamily'
*
* @platform android
*/
style?: ?ViewStyleProp,
/**
* 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
*/
enabled?: ?boolean,
/**
* If set to true, the specific item will be displayed with spaces preserved.
* default false
* @platform web
*/
preserveSpacesInLabel?: ?boolean,
|}>;