Version: Next
Picker.Item
Individual selectable item in a Picker.
Props#
Reference#
Props#
label#
Text to display for this item.
| Type | Required |
|---|---|
| string | Yes |
color#
Color of this item's text.
| Type | Required |
|---|---|
| color | No |
testID#
Used to locate the item in end-to-end tests.
| Type | Required |
|---|---|
| string | No |
value#
The value to be passed to picker's onValueChange callback when this item is selected. Can be a string or an integer.
| Type | Required | Platform |
|---|---|---|
| any | No | Android |