Gathering detailed insights and metrics for @react-native-picker/picker
Gathering detailed insights and metrics for @react-native-picker/picker
Gathering detailed insights and metrics for @react-native-picker/picker
Gathering detailed insights and metrics for @react-native-picker/picker
rmc-picker
React Mobile Picker Component(web and react-native)
rmc-date-picker
React Mobile DatePicker Component for web and react-native
react-native-image-picker
A React Native module that allows you to use native UI to select media from the device library or directly from the camera
@react-native-community/picker
React Native Picker for iOS & Android
Picker is a cross-platform UI component for selecting an item from a list of options.
npm install @react-native-picker/picker
Typescript
Module System
Node Version
NPM Version
68.4
Supply Chain
59.8
Quality
79.9
Maintenance
50
Vulnerability
94.1
License
JavaScript (25.17%)
Java (23.55%)
C++ (19.64%)
TypeScript (14.75%)
Objective-C++ (7.02%)
Objective-C (6.2%)
Ruby (1.43%)
Kotlin (1.23%)
CMake (0.82%)
C (0.19%)
Total Downloads
62,842,071
Last Day
24,749
Last Week
512,195
Last Month
2,224,196
Last Year
22,889,038
MIT License
1,674 Stars
475 Commits
302 Forks
15 Watchers
23 Branches
134 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
2.11.1
Package Id
@react-native-picker/picker@2.11.1
Unpacked Size
389.32 kB
Size
69.37 kB
File Count
195
NPM Version
8.19.4
Node Version
22.16.0
Published on
Jun 20, 2025
Cumulative downloads
Total Downloads
Last Day
-1.2%
24,749
Compared to previous day
Last Week
-3.3%
512,195
Compared to previous week
Last Month
-5.3%
2,224,196
Compared to previous month
Last Year
40.4%
22,889,038
Compared to previous year
2
32
@react-native-picker/picker
Android | iOS | PickerIOS |
---|---|---|
![]() | ![]() | ![]() |
Windows | MacOS |
---|---|
![]() | ![]() |
@react-native-picker/picker | react-native | react-native-windows |
---|---|---|
>= 2.0.0 | 0.61+ | 0.64+ |
>= 1.16.0 | 0.61+ | 0.61+ |
>= 1.2.0 | 0.60+ or 0.59+ with Jetifier | N/A |
>= 1.0.0 | 0.57 | N/A |
$ npm install @react-native-picker/picker --save
or
$ yarn add @react-native-picker/picker
As react-native@0.60 and above supports autolinking there is no need to run the linking process.
Read more about autolinking here. This is supported by react-native-windows@0.64
and above.
CocoaPods on iOS needs this extra step:
npx pod-install
No additional step is required.
Usage in Windows without autolinking requires the following extra steps:
ReactNativePicker
project to your solution.D:\dev\RNTest\node_modules\@react-native-picker\picker\windows\ReactNativePicker\ReactNativePicker.vcxproj
Add a reference to ReactNativePicker
to your main application project. From Visual Studio 2019:
Right-click main application project > Add > Reference...
Check ReactNativePicker
from Solution Projects.
Add #include "winrt/ReactNativePicker.h"
to the headers included at the top of the file.
Add PackageProviders().Append(winrt::ReactNativePicker::ReactPackageProvider());
before InitializeComponent();
.
CocoaPods on MacOS needs this extra step (called from the MacOS directory)
pod install
The following steps are only necessary if you are working with a version of React Native lower than 0.60
$ react-native link @react-native-picker/picker
Libraries
➜ Add Files to [your project's name]
node_modules
➜ @react-native-picker/picker
and add RNCPicker.xcodeproj
libRNCPicker.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainApplication.java
)import com.reactnativecommunity.picker.RNCPickerPackage;
to the imports at the top of the filenew RNCPickerPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':@react-native-picker_picker'
project(':@react-native-picker_picker').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-picker/picker/android')
android/app/build.gradle
:
implementation project(path: ':@react-native-picker_picker')
Libraries
➜ Add Files to [your project's name]
node_modules
➜ @react-native-picker/picker
and add RNCPicker.xcodeproj
libRNCPicker.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<you need to add android:supportsRtl="true"
to AndroidManifest.xml
1 <application 2 ... 3 android:supportsRtl="true">
Import Picker from @react-native-picker/picker
:
1import {Picker} from '@react-native-picker/picker';
Create state which will be used by the Picker
:
1const [selectedLanguage, setSelectedLanguage] = useState();
Add Picker
like this:
1<Picker 2 selectedValue={selectedLanguage} 3 onValueChange={(itemValue, itemIndex) => 4 setSelectedLanguage(itemValue) 5 }> 6 <Picker.Item label="Java" value="java" /> 7 <Picker.Item label="JavaScript" value="js" /> 8</Picker>
If you want to open/close picker programmatically on android (available from version 1.16.0+), pass ref to Picker
:
1const pickerRef = useRef(); 2 3function open() { 4 pickerRef.current.focus(); 5} 6 7function close() { 8 pickerRef.current.blur(); 9} 10 11return <Picker 12 ref={pickerRef} 13 selectedValue={selectedLanguage} 14 onValueChange={(itemValue, itemIndex) => 15 setSelectedLanguage(itemValue) 16 }> 17 <Picker.Item label="Java" value="java" /> 18 <Picker.Item label="JavaScript" value="js" /> 19</Picker>
onValueChange
Callback for when an item is selected. This is called with the following parameters:
itemValue
: the value
prop of the item that was selecteditemPosition
: the index of the selected item in this pickerType | Required |
---|---|
function | No |
selectedValue
Value matching value of one of the items. Can be a string or an integer.
Type | Required |
---|---|
any | No |
style
Type | Required |
---|---|
pickerStyleType | No |
testID
Used to locate this view in end-to-end tests.
Type | Required |
---|---|
string | No |
enabled
If set to false, the picker will be disabled, i.e. the user will not be able to make a selection.
Type | Required | Platform |
---|---|---|
bool | No | Android, Web, Windows |
mode
On Android, specifies how to display the selection items when the user taps on the picker:
Type | Required | Platform |
---|---|---|
enum('dialog', 'dropdown') | No | Android |
dropdownIconColor
On Android, specifies color of dropdown triangle. Input value should be value that is accepted by react-native processColor
function.
Type | Required | Platform |
---|---|---|
ColorValue | No | Android |
dropdownIconRippleColor
On Android, specifies ripple color of dropdown triangle. Input value should be value that is accepted by react-native processColor
function.
Type | Required | Platform |
---|---|---|
ColorValue | No | Android |
prompt
Prompt string for this picker, used on Android in dialog mode as the title of the dialog.
Type | Required | Platform |
---|---|---|
string | No | Android |
itemStyle
Style to apply to each of the item labels.
Type | Required | Platform |
---|---|---|
text styles | No | iOS, Windows |
numberOfLines
On Android & iOS, used to truncate the text with an ellipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number. Default is '1'
Type | Required | Platform |
---|---|---|
number | No | Android, iOS |
onBlur
Type | Required | Platform |
---|---|---|
function | No | Android |
onFocus
Type | Required | Platform |
---|---|---|
function | No | Android |
selectionColor
Type | Required | Platform |
---|---|---|
ColorValue | No | iOS |
blur
(Android only, lib version 1.16.0+)Programmatically closes picker
focus
(Android only, lib version 1.16.0+)Programmatically opens picker
Props that can be applied to individual Picker.Item
label
Displayed value on the Picker Item
Type | Required |
---|---|
string | Yes |
value
Actual value on the Picker Item
Type | Required |
---|---|
number,string | Yes |
color
Displayed color on the Picker Item
Type | Required |
---|---|
ColorValue | No |
fontFamily
Displayed fontFamily on the Picker Item
Type | Required |
---|---|
string | No |
style
Style to apply to individual item labels.
Type | Required | Platform |
---|---|---|
ViewStyleProp | No | Android |
enabled
If set to false, the specific item will be disabled, i.e. the user will not be able to make a selection
@default: true
Type | Required | Platform |
---|---|---|
boolean | No | Android |
contentDescription
Sets the content description to the Picker Item
Type | Required | Platform |
---|---|---|
string | No | Android |
itemStyle
Type | Required |
---|---|
text styles | No |
onValueChange
Type | Required |
---|---|
function | No |
selectedValue
Type | Required |
---|---|
any | No |
selectionColor
Type | Required | Platform |
---|---|---|
ColorValue | No | iOS |
themeVariant
Type | Required |
---|---|
enum('light', 'dark') | No |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 12/24 approved changesets -- score normalized to 5
Reason
3 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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