Bind the selection
Each option has a stable id and label. Store an option id in selection and update it in onSelectionChange.
Choose a picker style
pickerStyle accepts menu, navigationLink, segmented or inline. Omit it for the contextual default.
API
Scroll horizontally to read every column.
| Prop | Type | Description |
|---|---|---|
label | string | The setting name. |
options | readonly Choice[] | The available choices. |
selection | string | The selected option id. |
onSelectionChange | (id: string) => void | Receives the selected id. |
pickerStyle | PickerStyle | Optional presentation style. |
Related: Quick start, List, Screen.
:::