You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`pickerProps`| Additional props to pass to the Picker (some props are used in core functionality so use this carefully) | object |
64
64
|`Icon`| Custom icon component to be rendered.<br>_More details in [styling](#styling)_| Component |
65
65
|`textInputProps`| Additional props to pass to the TextInput (some props are used in core functionality so use this carefully). This is iOS only unless `useNativeAndroidPickerStyle={false}`. | object |
66
+
|`onOpen`<br> | Callback triggered right before the opening of the picker<br>_Not supported when useNativeAndroidPickerStyle={true}_| function |
66
67
|`useNativeAndroidPickerStyle`<br>_Android only_| The component defaults to using the native Android Picker in its un-selected state. Setting this flag to `false` will mimic the default iOS presentation where a tappable TextInput is displayed.<br>_More details in [styling](#styling)_| boolean |
67
68
|`InputAccessoryView`<br>_iOS only_| Replace the InputAcessoryView section (bar with tabbing arrown and Done button) of the opened picker with your own custom component. Can also return `null` here to hide completely. While this bar is typical on `select` elements on the web, the [interface guidelines](https://developer.apple.com/ios/human-interface-guidelines/controls/pickers/) does not include it. View the [snack](https://snack.expo.io/@lfkwtz/react-native-picker-select) to see examples on how this can be customized. | boolean |
68
69
|`doneText`<br>_iOS only_| "Done" default text on the modal. Can be overwritten here | string |
69
70
|`onUpArrow / onDownArrow`<br>_iOS only_| Presence enables the corresponding arrow<br>- Closes the picker<br>- Calls the callback provided | function |
70
71
|`onDonePress`<br>_iOS only_| Callback when the 'Done' button is pressed | function |
71
-
|`onOpen / onClose`<br>_iOS only_| Callback triggered right before the opening or closing of the picker | function |
72
+
|`onClose`<br>_iOS only_| Callback triggered right before the closing of the picker| function |
72
73
|`modalProps`<br>_iOS only_| Additional props to pass to the Modal (some props are used in core functionality so use this carefully) | object |
73
74
74
75
### Styling
@@ -95,7 +96,7 @@ All properties mentioned below must be nested under the `style` prop. Examples o
95
96
96
97
## Testing
97
98
98
-
This component has been tested on React Native v0.51 - v0.59
99
+
This component has been tested on React Native v0.51 - v0.61
0 commit comments