-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ca3932
commit 05d3ba8
Showing
8 changed files
with
144 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* 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, | ||
|}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters