concept PickerIOS in category react native
appears as: PickerIOS, PickerIOS

This is an excerpt from Manning's book React Native in Action.
Using
PickerIOS, you can access the native iOSPickercomponent. This component basically allows you to scroll through and choose from a list of values using the native UI (see figure 10.3).PickerIOShas the methods and props listed in table 10.2.Table 10.2
PickerIOSmethods and propsFigure 10.3 PickerIOS rendering a list of people
![]()
PickerIOSwraps a list of items to be rendered as children. Each child item must be aPickerIOS.Item:
Listing 10.8 Using
PickerIOSwith an array ofPickerIOS.Itemsconst people = [ #an array of people ]; render() { <PickerIOS> { people.map((p, i) =>( <PickerItem key={i} value={p} label={p}/> )) } <PickerIOS>