Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #add #picker #expo
ADD COMMENT
Topic
Name
3+6 =