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
|`onValueChange`| Callback which returns `value, index`|**required**<br>function |
67
-
|`items`| The items for the component to render<br> - Each item should be in the following format:<br>`{label: 'Orange', value: 'orange', key: 'orange', color: 'orange', inputLabel: 'Orange!', testID: 'e2e-orange'}`<br>- `label` and `value` are required<br>- `key`, `color`, and `inputLabel` are optional<br>- `key` will be set to equal `label` if not included<br>- `value` can be any data type<br>- If `inputLabel` exists, the TextInput will display that value instead of the `label`<br>- `testID` will be used in e2e tests to locate the options |**required**<br>array |
67
+
|`items`| The items for the component to render<br> - Each item should be in the following format:<br>`{label: 'Orange', value: 'orange', key: 'orange', color: 'orange', inputLabel: 'Orange!', testID: 'e2e-orange'}`<br>- `label` and `value` are required<br>- `key`, `color`, `testID`, and `inputLabel` are optional<br>- `key` will be set to equal `label` if not included<br>- `value` can be any data type<br>- If `inputLabel` exists, the TextInput will display that value instead of the `label`|**required**<br>array |
68
68
|`placeholder`| - An override for the default placeholder object with a label of `Select an item...` and a value of `null`<br>- An empty object can be used if you'd like to disable the placeholder entirely | object |
69
69
|`disabled`| Disables interaction with the component | boolean |
70
70
|`value`| Will attempt to locate a matching item from the `items` array by checking each item's `value` property. If found, it will update the component to show that item as selected. If the value is not found, it will default to the first item. | any |
@@ -82,7 +82,7 @@ export const Dropdown = () => {
82
82
|`doneText`<br>_iOS only_| "Done" default text on the modal. Can be overwritten here | string |
83
83
|`onUpArrow() / onDownArrow()`<br>_iOS only_| Presence enables the corresponding arrow<br>- Closes the picker<br>- Calls the callback provided | function |
84
84
|`onDonePress()`<br>_iOS only_| Callback when the 'Done' button is pressed | function |
85
-
|`onClose(Bool)`<br>_iOS only_| Callback triggered right before the closing of the picker. It has one boolean parameter indicating if the done button was pressed or not | function |
85
+
|`onClose(Bool)`<br>_iOS only_| Callback triggered right before the closing of the picker. It has one boolean parameter indicating if the done button was pressed or not | function |
86
86
|`modalProps`<br>_iOS only_| Additional props to pass to the Modal (some props are used in core functionality so use this carefully) | object |
87
87
|`touchableDoneProps`<br>_iOS only_| Additional props to pass to the Done touchable (some props are used in core functionality so use this carefully) | object |
0 commit comments