React Native – Picker
In this chapter, we will create simple Picker with two available options.
Step 1 – Create File
Here, theApp.js folder will be used as a presentational component.
Step 2 – Logic
this.state.user is used for picker control.
The updateUser function will be triggered when a user is picked.