Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-native-optionselector

1.0.3 • Public • Published

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

Install

npm i react-native-optionselector

DownloadsWeekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

17.9 kB

Total Files

4

Last publish

Collaborators

  • avatar