Picker.Item
Picker.Item, for configuring the Picker's selectable options
(code example)
#
Usage<Picker.Item key={index} value={item}/>
#
API#
disabledIs the item disabled
boolean
#
getItemLabelCustom function for the item label
(value: string | number) => string
#
isSelectedIs the item selected
boolean
#
labelItem's label
string
#
labelStyleItem's label style
ViewStyle
#
onPressCallback for onPress action, will stop selection if false is returned
(selected: boolean | undefined, props: any) => void | Promise<boolean>;
#
onSelectedLayoutCallback for onLayout event
(event: LayoutChangeEvent) => void
#
selectedIconPass to change the selected icon
string
#
selectedIconColorPass to change the selected icon color
ImageSource
#
valueItem's value
string | number