Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-a-n/react-native-multiple-choice
A cross-platform (iOS / Android) single and multiple-choice React Native component.
https://github.com/d-a-n/react-native-multiple-choice
Last synced: 5 days ago
JSON representation
A cross-platform (iOS / Android) single and multiple-choice React Native component.
- Host: GitHub
- URL: https://github.com/d-a-n/react-native-multiple-choice
- Owner: d-a-n
- License: mit
- Created: 2016-02-25T11:34:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T13:23:09.000Z (about 7 years ago)
- Last Synced: 2024-11-18T14:11:27.547Z (24 days ago)
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 67
- Watchers: 6
- Forks: 41
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-multiple-choice ★57 - A cross-platform (iOS / Android) single and multiple-choice React Native component. (Components / UI)
- awesome-reactnative-ui - react-native-multiple-choice - platform (iOS / Android) single and multiple-choice React Native component.|<ul><li>Last updated : This week</li><li>Stars : 59</li><li>Open issues : 15</li></ul>|![](https://raw.githubusercontent.com/d-a-n/react-native-multiple-choice/master/assets/images/screenshot.png)| (Others)
- awesome-react-native - react-native-multiple-choice ★57 - A cross-platform (iOS / Android) single and multiple-choice React Native component. (Components / UI)
- awesome-reactnative-ui - react-native-multiple-choice - platform (iOS / Android) single and multiple-choice React Native component.|<ul><li>Last updated : This week</li><li>Stars : 59</li><li>Open issues : 15</li></ul>|![](https://raw.githubusercontent.com/d-a-n/react-native-multiple-choice/master/assets/images/screenshot.png)| (Others)
- awesome-react-native - react-native-multiple-choice ★57 - A cross-platform (iOS / Android) single and multiple-choice React Native component. (Components / UI)
- awesome-react-native-ui - react-native-multiple-choice ★34 - A cross-platform (iOS / Android) single and multiple-choice React Native component. (Components / UI)
- awesome-react-native - react-native-multiple-choice ★57 - A cross-platform (iOS / Android) single and multiple-choice React Native component. (Components / UI)
README
# react-native-multiple-choice
A cross-platform (iOS / Android) single and multiple-choice React Native component.## Install
```sh
npm i react-native-multiple-choice --save
```## Usage
Here is an overview of the component usage.
```jsx
alert(option + ' was selected!')}
/>
```## Props
* `style - {}` custom style of the list
* `optionStyle - {}` custom style of the option element
* `options - []` required array of options
* `selectedOptions - []` optional array of initially selected options
* `maxSelectedOptions - int` optional maximum number of selectable options
* `onSelection - function(option){}` option selection callback
* `renderIndicator - function(option)` should return a selected/deselected indicator node, default: check mark image
* `renderSeparator - function(option)` should return a separator node that is displayed between the options, default: gray line
* `renderText - function(option)` should return a text node, default: text node
* `renderRow - function(option)` should return a option view
* `disabled - bool` if set to true component is disabled and can't be interacted with## Screenshot
![example](https://raw.githubusercontent.com/d-a-n/react-native-multiple-choice/master/assets/images/screenshot.png)