Simal UI
Components

Picker

WEB APPROXIMATION — Picker wraps @react-native-picker/picker, which is a native wheel on iOS and a native dropdown on Android.

On web it degrades to a <select>, so the sizing and the open/close interaction here are not what ships. Verify on a simulator.

Import

import { Picker } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
selectedValueValue of the active item. Controlled — pair with onValueChange.
onValueChangeFires with (value, index). The value is whatever you put on the matching Picker.Item.
modedialog · dropdown"dropdown"Android only. dropdown anchors to the field, dialog opens a modal list. iOS always uses its wheel.
enabledbooleantrueFalse blocks opening the picker and dims it.

Examples

Disabled

On this page