Answers for "how to add a picker in expo"

0

how to add a picker in expo

import {Picker} from '@react-native-picker/picker';

<Picker
  selectedValue={this.state.language}
  style={{height: 50, width: 100}}
  onValueChange={(itemValue, itemIndex) =>
    this.setState({language: itemValue})
  }>
  <Picker.Item label="Java" value="java" />
  <Picker.Item label="JavaScript" value="js" />
</Picker>
Posted by: Guest on February-24-2021

Code answers related to "how to add a picker in expo"

Code answers related to "Javascript"

Browse Popular Code Answers by Language