Quantcast
Channel: react-native fill the picker by mapping - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Tobias Lins for react-native fill the picker by mapping

$
0
0

You should use the Item from the Picker component to get this work.

There are two possible ways to do it.

const PickerItem = Picker.Item;

and than using this <PickerItem> component later on.

Or you just use the Component directly

<Picker.Item style={{fontFamily: 'SourceSansPro-Regular'}} label={address.id} value={address.id} key={i}/>


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>