Skip to main content

Picker.Item

PlaygroundCode Example
APIThis is the list of additional props for the component

disabled
boolean

Is the item disabled

isSelected
boolean

Is the item selected

label
string

Item's label

labelStyle
ViewStyle

Item's label style

onPress
(selected: boolean | undefined, props: any) => void | Promise<boolean>;

Callback for onPress action, will stop selection if false is returned

onSelectedLayout
(event: LayoutChangeEvent) => void

Callback for onLayout event

selectedIcon
string

Pass to change the selected icon

selectedIconColor
ImageSource

Pass to change the selected icon color

value
string | number

Item's value