https://github.com/shahen94/react-native-choices
Simple <Choices /> component for react-native
https://github.com/shahen94/react-native-choices
Last synced: 3 months ago
JSON representation
Simple <Choices /> component for react-native
- Host: GitHub
- URL: https://github.com/shahen94/react-native-choices
- Owner: shahen94
- License: mit
- Created: 2017-06-11T09:18:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T10:14:30.000Z (almost 8 years ago)
- Last Synced: 2025-02-18T16:43:08.336Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-choices Component
### Getting Started
```sh
npm install react-native-choices --save
```Usage
```javascript
import Choices from 'react-native-choices';export default class Example extends Component {
state = {
selected: 'Public'
}
render() {
return (
this.setState({ selected })}
selected={this.state.selected}
label={'Messages'}
containerStyle={{ width: 350 }}
labelStyle={{ fontSize: 12 }}
/>
);
}
}
```
### Licence
MIT