react-native-choices

1.0.0 • Public • Published

react-native-choices Component

Getting Started

npm install react-native-choices --save

Usage

import Choices from 'react-native-choices';
 
export default class Example extends Component {
  state = {
    selected: 'Public'
  }
  render() {
    return (
      <View style={styles.container}>
        <Choices
          options={['Private', 'Public', 'Off']}
          onChange={(selected) => this.setState({ selected })}
          selected={this.state.selected}
          label={'Messages'}
          containerStyle={{ width: 350 }}
          labelStyle={{ fontSize: 12 }}
        />
      </View>
    );
  }
}

Licence

MIT

Package Sidebar

Install

npm i react-native-choices

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • shahen