react-native-optionselector
A react native option selector to select a option from provided list of options.
Last updated a year ago by zack4114 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-native-optionselector 
SYNC missed versions from official npm registry.

react-native-optionselector

Installation

npm install react-native-optionselector

Properties

selectionColor => takes a hex colour string to higlight the selected option

onPress => takes a function to update the value of selected option in the parent component

example snippet

setSelectedOption = option => { this.setState({ selectedValue: option }); };

<OptionSelector onPress={this.setSelectedOption}

options => takes a list of string where each element of string is an option

Current Tags

  • 1.0.3                                ...           latest (a year ago)

4 Versions

  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |