Skip to content

johniak/react-native-awesome-picker

Repository files navigation

React Native Awesome Picker

NPM Version Platform - Android and iOS

iOS Android

How to use?

Install library

$ npm i -s react-native-awesome-picker

Import required dependencies.

import AwesomePicker from 'react-native-awesome-picker'

and then in body of your component

state = {language: 'js'}

renderPicker() {
  return (
    <AwesomePicker
      selectedValue={this.state.language}
      onValueChange={(itemValue, itemIndex) => this.setState({language: itemValue})}>
      <AwesomePicker.Item label="Java" value="java"/>
      <AwesomePicker.Item label="JavaScript" value="js"/>
    </AwesomePicker>
  )
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published