Gathering detailed insights and metrics for @zooshgroup/react-native-multiple-select
Gathering detailed insights and metrics for @zooshgroup/react-native-multiple-select
npm install @zooshgroup/react-native-multiple-select
Typescript
Module System
Node Version
NPM Version
31.4
Supply Chain
77.6
Quality
71.7
Maintenance
25
Vulnerability
75
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
6,859
Last Day
2
Last Week
14
Last Month
55
Last Year
432
2 Stars
92 Commits
1 Forks
5 Watching
3 Branches
1 Contributors
Latest Version
0.2.26
Package Id
@zooshgroup/react-native-multiple-select@0.2.26
Unpacked Size
140.67 kB
Size
40.70 kB
File Count
12
NPM Version
6.0.0
Node Version
8.9.0
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
100%
14
Compared to previous week
Last month
816.7%
55
Compared to previous month
Last year
-55.1%
432
Compared to previous year
Simple multi-select component for react-native (Select2 for react-native).
1$ npm install react-native-multiple-select --save
or use yarn
1$ yarn add react-native-multiple-select
Note: Ensure to add and configure react-native-vector-icons to your project before using this package.
The snippet below shows how the component can be used
1// import component 2import MultiSelect from 'react-native-multiple-select'; 3 4const items = [{ 5 id: '92iijs7yta', 6 name: 'Ondo', 7}, { 8 id: 'a0s0a8ssbsd', 9 name: 'C2G', 10}, { 11 id: '16hbajsabsd', 12 name: 'Calabar', 13}, { 14 id: 'nahs75a5sg', 15 name: 'Fourth Item', 16}, { 17 id: '667atsas', 18 name: 'Fifth Item', 19}]; 20 21let selectedItem = selectedItems => { 22 // do something with selectedItems 23 console.log(selectedItems); 24}; 25 26<MultiSelect 27 items={items} 28 uniqueKey="id" 29 selectedItemsChange={selectedItem} 30 selectedItems={[]} 31 selectText="Pick Items" 32 searchInputPlaceholderText="Search Items..." 33 altFontFamily="ProximaNova-Light" 34 tagRemoveIconColor="#CCC" 35 tagBorderColor="#CCC" 36 tagTextColor="#CCC" 37 selectedItemTextColor="#CCC" 38 selectedItemIconColor="#CCC" 39 itemTextColor="#000" 40 searchInputStyle={{ color: '#CCC' }} 41 submitButtonColor="#CCC" 42 submitButtonText="Submit" 43/> 44
The component takes 3 compulsory props - items
, uniqueKey
and selectedItemsChange
. Other props are optional. The table below explains more.
Prop | Required | Purpose |
---|---|---|
items | Yes | List of items to display in the multi-select component. JavaScript Array of objects. Each object must contain a name and unique identifier (Check sample above) |
uniqueKey | Yes | Unique identifier that is part of each item's properties. Used internally as means of identifying each item (Check sample below) |
selectedItemsChange | Yes | JavaScript function passed in as an argument. The function is to be defined with an argument (selectedItems). The function is called whenever items are added or removed in the component. (Check sample above) |
selectedItems | No | List of selected items. JavaScript Array of objects that is part of the items (check above), that cna be instantiated with the component |
selectText | No | Text displayed in main component |
searchInputPlaceholderText | No | Placeholder text displayed in multi-select filter input |
fontFamily | No | Custom font family to be used in component (affects all text except searchInputPlaceholderText described above) |
altFontFamily | No | Font family for searchInputPlaceholderText |
tagRemoveIconColor | No | Color to be used for the remove icon in selected items list |
tagBorderColor | No | Border color for each selected item |
tagTextColor | No | Text color for selected items list |
selectedItemFontFamily | No | Font family for each selected item in multi-select drop-down |
selectedItemTextColor | No | Text color for each selected item in multi-select drop-down |
selectedItemIconColor | No | Color for selected check icon for each selected item in multi-select drop-down |
itemFontFamily | No | Font family for each non-selected item in multi-select drop-down |
itemTextColor | No | Text color for each non-selected item in multi-select drop-down |
searchInputStyle | No | Style object for multi-select input element |
submitButtonColor | No | Background color for submit button |
submitButtonText | No | Text displayed on submit button |
To use, add ref to MultiSelect component in parent component, then call method against reference. i.e.
1<MultiSelect 2 ref={c => this._multiSelect = c} 3 ... 4/> 5 6clearSelectedCategories = () => { 7 this._multiSelect.removeAllItems(); 8}; 9
Contributions are welcome and will be fully credited.
Contributions are accepted via Pull Requests on Github.
Document any change in behaviour - Make sure the README.md
and any other relevant documentation are kept up-to-date.
Consider our release cycle - We try to follow SemVer v2.0.0. Randomly breaking public APIs is not an option.
Create feature branches - Don't ask us to pull from your master branch.
One pull request per feature - If you want to do more than one thing, send multiple pull requests.
Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
Check issues for current issues.
The MIT License (MIT). Please see LICENSE for more information.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
61 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More