Skip to content

Instantly share code, notes, and snippets.

@wwwjsw
Created April 17, 2019 12:33
Show Gist options
  • Select an option

  • Save wwwjsw/21732938dfebef833fc3411170ac5f61 to your computer and use it in GitHub Desktop.

Select an option

Save wwwjsw/21732938dfebef833fc3411170ac5f61 to your computer and use it in GitHub Desktop.
var options =["teste1","teste2","teste3","teste4"];
<Picker
mode="dropdown"
selectedValue={this.state.selected}
onValueChange={()=>{}}>
{options.map((item, index) => {
return (<Picker.Item label={item} value={index} key={index}/>)
})}
</Picker>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment