Installations
npm install react-native-simple-picker-sh
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.13.0
NPM Version
6.13.4
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (71.9%)
Java (16.58%)
Ruby (7.46%)
Objective-C (4.06%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
2,375
Last Day
9
Last Week
10
Last Month
22
Last Year
198
GitHub Statistics
1 Stars
4 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.0.9
Package Id
react-native-simple-picker-sh@1.0.9
Unpacked Size
22.03 kB
Size
6.15 kB
File Count
14
NPM Version
6.13.4
Node Version
10.13.0
Total Downloads
Cumulative downloads
Total Downloads
2,375
Last day
0%
9
Compared to previous day
Last week
0%
10
Compared to previous week
Last month
83.3%
22
Compared to previous month
Last year
-23%
198
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Peer Dependencies
1
react-native-simple-picker-sh
Highly customizable small sized picker library for react native
Getting started
$ npm install react-native-simple-picker-sh --save
E.g.:
import {Picker} from 'react-native-simple-picker'
export default class TestPicker extends Component{
state={
pickedItem:''
}
render(){
return(
<View>
<Picker
items={['foo','bar']}
selectedValue={this.state.pickedItem}
placeHolder="Select an item"
onChange={(item)=>this.setState({pickedItem:item})}
height={40}
width={170}
itemsHeight={40}
itemsWidth={150}
/>
</View>
)
}
}
##Props
A. onChange (required)
Callback when item is selected onChange={(text)=>onChangeText(text)}
B. items (required)
Array of items to be shown items=['foo','bar']
C. selectedValue
What should be shown after the item selection
1. backgroundColor
Background color for the picker view
default value : '#F5F5F5'
2. borderColor
Border color for the picker view
default value : '#E0E0E0'
3. borderWidth
Border width for the picker view
4. borderRadius
Border radius for the picker view
5. height
Height of the picker view
default value : 50
6. width
Width of the picker view
default value : 170
7. justifyContent
Justify content flex property for the selected or placeholder value and the dropdown icon
default value : 'space-between'
8. alignItems
Align items flex property for the selected or placeholder value and the dropdown icon
default value : 'center'
9. padding
Padding for the items inside the picker view
default value : 10
10. activeOpacity
Opacity for the onPress event of the picker view(range[0-1])
default value : 0.2
11. placeHolder
Placeholder to be shown in dropdown in case of no picked selected value or default selected value
default value : 'Select...'
12. placeHolderColor
Color of the placeholder or the selected item
default value : '#212121'
13. PlaceHolderFontSize
Font size of the placeholder or the selected item
default value : 20
14. iconColor
Color of the dropdown icon
default value : '#000'
15. backgroundVisibility
Transparency outside the picker popup(range[0-1])
default value : 0.8
16. offSetX
absolute X position of the picker popup
17. offSetY
absolute Y position of the picker popup
18. itemsHeight
Height of a single item inside picker popup
default value : 40
19. itemsWidth
Width of a single item inside picker popup
default value : 150
20. itemsBackgroundColor
BackgroundColor of the items inside the picker popup
default value : '#E0E0E0'
21. itemsDividerColor
default value : '#E0E0E0'
22. itemsDividerWidth
default value : 1
23. itemsTextColor
default value : '#000'
24. itemsFontSize
default value : 19
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/4 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 SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
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