Picker.Item

Picker.Item, for configuring the Picker's selectable options

Extends: TouchableOpacity
(meaning you can pass the super component's props as well).

PROPS

namedescriptiontypedefault
label[DEPRECATED - please include the label in the value prop] The item labelstring
valueThe item value with the following format - {value: ..., label: ...}, for custom shape use getItemLabel, getItemValue propsunion
getItemLabelFunction to return the label out of the item value prop when value is custom shaped.func
getItemValueFunction to return the value out of the item value prop when value is custom shaped.func
isSelectedIs the item selectedbool
disabledIs the item disabledbool
renderItemRender custom itemfunc
onPressCallback for onPress actionfunc
onSelectedLayoutCallback for onLayout eventfunc

CODE SAMPLE

See example here.