Skip to main content

Picker

A control for selecting from a set of mutually exclusive values.

Example​

const selection = useBinding('Option 1');
<Picker selection={selection}>
<Text>Option 1</Text>
<Text>Option 2</Text>
<Text>Option 3</Text>
</Picker>

Props​

Picker inherits all View Modifiers as props.

propdescriptiontyperequireddefault
selectionThe selected valuestringyesundefined
onChangeFunction to execute when a selection is made(v: string) => voidnoundefined