Skip to main content

Picker.Item

Picker.Item, for configuring the Picker's selectable options
(code example)

Usage#

<Picker.Item key={index} value={item}/>

API#

disabled#

Is the item disabled
boolean

getItemLabel#

Custom function for the item label
(value: string | number) => string

isSelected#

Is the item selected
boolean

label#

Item's label
string

labelStyle#

Item's label style
ViewStyle

onPress#

Callback for onPress action, will stop selection if false is returned
(selected: boolean | undefined, props: any) => void | Promise<boolean>;

onSelectedLayout#

Callback for onLayout event
(event: LayoutChangeEvent) => void

selectedIcon#

Pass to change the selected icon
string

selectedIconColor#

Pass to change the selected icon color
ImageSource

value#

Item's value
string | number