# react-native-multiple-select-list

> react-native-multiple-select-list

Latest version **1.0.4** (published 2017-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-multiple-select-list
pnpm add react-native-multiple-select-list
yarn add react-native-multiple-select-list
bun add react-native-multiple-select-list
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-06-20 |
| First published | 2017-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 73 |
| Author | Mirata Seddigh Mohammadi ataomega@gmail.com |
| Maintainers | ataomega |
| Keywords | react, react-native, react, native, multiple, select, multiple, select, list, multiple, select, with, search, radio, button |

## Links

- npm: https://www.npmjs.com/package/react-native-multiple-select-list
- Repository: https://github.com/ataomega/react-native-multiple-select-list
- Homepage: https://github.com/ataomega/react-native-multiple-select-list#readme
- Issues: https://github.com/ataomega/react-native-multiple-select-list/issues
- npm.io page: https://npm.io/package/react-native-multiple-select-list

## Dependencies (1)

- [react-native-vector-icons](https://npm.io/package/react-native-vector-icons.md) ^3.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-06-20
- 1.0.3 — 2017-06-20
- 1.0.2 — 2017-06-20
- 1.0.0 — 2017-06-13
- 0.0.2 — 2017-06-13
- 0.0.1 — 2017-06-13

## README

# react-native-multiple-select-list
Multiple select list with search bar

### Install :
```sh
npm install --save react-native-multiple-select-list
```
### Example usage :
```javascript
import CustomMultiPicker from "react-native-multiple-select-list";

const userList = {
  "123":"Tom",
  "124":"Michael",
  "125":"Christin"
}

<CustomMultiPicker
  options={userList}
  search={true} // should show search bar?
  multiple={true} //
  placeholder={"Search"}
  placeholderTextColor={'#757575'}
  returnValue={"label"} // label or value
  callback={(res)=>{ console.log(res) }} // callback, array of selected items
  rowBackgroundColor={"#eee"}
  rowHeight={40}
  rowRadius={5}
  iconColor={"#00a2dd"}
  iconSize={30}
  selectedIconName={"ios-checkmark-circle-outline"}
  unselectedIconName={"ios-radio-button-off-outline"}
  scrollViewHeight={130}
  selected={[1,2]} // list of options which are selected by default
/>
```

![react-native-multiple-select-list](https://raw.githubusercontent.com/ataomega/react-native-multiple-select-list/master/screenshot.png)


### Props:
| Prop | Type | Description |
| ------ | ------ | ------ |
| options | Object | list of options/items |
| search | Boolean | if the search bar should be shown or not |
| multiple | Boolean | if user can select multiple options or not. if you select an item which is already selected, it will be unselected. if multiple is disabled, it will work like radio buttons. |
| placeholder | String | placeholder text for search bar |
| placeholderTextColor | String | placeholder text color for search bar |
| returnValue | String | should it return keys of selected options or values? |
| callback | Function | whenever user selects or changes selections it will be called. |
| rowBackgroundColor | String | background color for each row in list |
| rowHeight | Integer | row height |
| rowRadius | Integer | row border radius |
| iconColor | String | icon color for checked/unchecked icons and search icon also border color of search bar |
| iconSize | Integer | icon size for checked/unchecked icons |
| selectedIconName | String | selected/checked icon name (react-native-vector-icons/Ionicon) |
| unselectedIconName | String | unselected/unchecked icon name (react-native-vector-icons/Ionicon) |
| scrollViewHeight | Integer |scrollview height (list of items) |
| selected | Object | list of options which are selected by default |

### Author:
Ata S.Mohammadi.
ataomega@gmail.com

---
_Source: https://npm.io/package/react-native-multiple-select-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
