Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-picker-select
Advanced tools
A Picker component for React Native which emulates the native <select> interfaces for each platform
A Picker component for React Native which emulates the native <select>
interfaces for iOS and Android
For iOS, we are wrapping a TextInput component. You can pass down your custom styling to match your other inputs.
For Android, we are using the native Picker component, but adding a pseudo-underline to emulate a typical TextInput. Additional styling can be passed down also to further customize the appearance.
For either platform, you can alternatively pass down a child element that will be wrapped in a touchable area, triggering the picker.
npm install react-native-picker-select
Component | RN |
---|---|
>= 3.0.0 | >= 0.55.3 |
< 3.0.0 | < 0.55.3 |
Required Props
onValueChange
- function
value, index
items
- array
{
label: 'Orange',
value: 'orange',
key: 'orange',
}
Optional Props
placeholder
- object
Select an item...
and a value of null
disabled
- boolean
value
- any
items
array by checking each item's value
property. If found, it will update the component to show that item as selected. If the value is not found, it will default to the first item.style
- object
hideDoneBar
- boolean - iOS ONLY
<select>
elements on the web, the interface guidelines does not include it.hideIcon
- boolean - iOS ONLY
onUpArrow
and/or onDownArrow
- function - iOS ONLY
inputIOS
to style the inputviewContainer
, icon
, done
, modalViewTop
, modalViewMiddle
, modalViewBottom
, and placeholderColor
underline
inputAndroid
viewContainer
and placeholderColor
This component has been tested on React Native v0.51 - v0.55
<select>
react-native-picker-select is MIT licensed.
FAQs
A Picker component for React Native which emulates the native <select> interfaces for each platform
The npm package react-native-picker-select receives a total of 95,107 weekly downloads. As such, react-native-picker-select popularity was classified as popular.
We found that react-native-picker-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.