Gathering detailed insights and metrics for react-native-dropdown-picker
Gathering detailed insights and metrics for react-native-dropdown-picker
Gathering detailed insights and metrics for react-native-dropdown-picker
Gathering detailed insights and metrics for react-native-dropdown-picker
@react-native-picker/picker
React Native Picker for iOS, Android, macOS, and Windows
react-native-select-dropdown
react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
react-native-modal-datetime-picker
A react-native datetime-picker for Android and iOS
react-native-date-picker
A datetime picker for React Native. In-modal or inlined. Supports Android and iOS.
A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
npm install react-native-dropdown-picker
58.6
Supply Chain
55.9
Quality
71.5
Maintenance
50
Vulnerability
95.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,001 Stars
729 Commits
297 Forks
9 Watching
7 Branches
43 Contributors
Updated on 27 Nov 2024
JavaScript (97.09%)
Shell (2.91%)
Cumulative downloads
Total Downloads
Last day
6.6%
18,241
Compared to previous day
Last week
7.3%
95,745
Compared to previous week
Last month
8.5%
380,698
Compared to previous month
Last year
28.9%
4,242,850
Compared to previous year
2
17
The above screenshots were taken from this example.
The following code shows basic usage of this library:
1import React, {useState} from 'react'; 2import {View, Text} from 'react-native'; 3import DropDownPicker from 'react-native-dropdown-picker'; 4 5export default function App() { 6 const [open, setOpen] = useState(false); 7 const [value, setValue] = useState(null); 8 const [items, setItems] = useState([ 9 {label: 'Apple', value: 'apple'}, 10 {label: 'Banana', value: 'banana'}, 11 {label: 'Pear', value: 'pear'}, 12 ]); 13 14 return ( 15 <View style={{flex: 1}}> 16 <View 17 style={{ 18 flex: 1, 19 alignItems: 'center', 20 justifyContent: 'center', 21 paddingHorizontal: 15, 22 }}> 23 <DropDownPicker 24 open={open} 25 value={value} 26 items={items} 27 setOpen={setOpen} 28 setValue={setValue} 29 setItems={setItems} 30 placeholder={'Choose a fruit.'} 31 /> 32 </View> 33 34 <View style={{ 35 flex: 1, 36 alignItems: 'center', 37 justifyContent: 'center' 38 }}> 39 <Text>Chosen fruit: {value === null ? 'none' : value}</Text> 40 </View> 41 </View> 42 ); 43}
You can find more examples in the examples
subdirectory. This subdirectory is
a working Expo project demonstrating this
library. It shows how to use this library with class components as well as with
function components, and in TypeScript as well as in JavaScript. Navigate into
the examples
subdirectory, run npm install
, and then run npx expo start
to
see the examples working.
For further information on how to use this library, read the usage documentation.
The docs can be read at: https://hossein-zare.github.io/react-native-dropdown-picker-website
The docs can be edited at: https://github.com/hossein-zare/react-native-dropdown-picker-website
If you have questions or need help, you can ask a question on Stack Overflow or make a GitHub issue. You can also make a GitHub issue to report a bug or make a feature request.
See CONTRIBUTING.md.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
Found 2/23 approved changesets -- score normalized to 0
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
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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