Invariant Violation: requireNativeComponent "RNCPicker" was not found in the UIManager
See original GitHub issueRNCPicker was not found in the UIManager
This happened when I moved to latest version 8.0.0
To Reproduce
(I din’t try this in a new project, but here is what I did)
Steps to reproduce the behavior:
- Update
react-native-picker-select
to8.0.0
rm -rf node_modules && yarn cache clean && yarn install
cd ios && pod install
- run the IOS build
- Launch the open and click on RNPickerSelect component
Expected behavior
To behave like it was in the previous version
Screenshots
Additional details
- Device: iPhone11
- OS: iOS13.6
- react-native-picker-select version: 8.0.0
- react-native version: 0.61.5
Reproduction and/or code sample
<RNPickerSelect
placeholder={{ label: this.props.placeholderText, value: null }}
items={this.props.items}
onValueChange={this.props.onValueChange}
style={{ ...this.pickerSelectStyles() }}
value={this.props.selectedValue}
/>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:28
- Comments:55 (8 by maintainers)
Top Results From Across the Web
requireNativeComponent: "RNCPicker" was not found in the ...
`Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager. This error is located at: in RNCPicker (at PickerIOS.ios.js:107)
Read more >reactjs - Error: Invariant Violation: requireNativeComponent ...
Error : Invariant Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager. Imported NPM Library into project: import { ...
Read more >"RNCPicker" was not found in the UIManager-React Native
Coding example for the question Error: Invariant Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager-React Native.
Read more >react-native-picker-select - npm
... see a `Invariant Violation: requireNativeComponent "RNCPicker" was not found in the UIManager` error: # React Native users npm install ...
Read more >ERROR Invariant Violation: requireNativeComponent ...
Invariant Violation : requireNativeComponent: "RNCWebView" was not found in the UIManager. shell by Grieving Gharial on Jul 31 2021 Comment.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved running:
npm install @react-native-community/picker
npx pod-install
remember to stop your debugging mode and start it again.
I had a similar issue with expo 38.0.8. steps to solve :
using:
*only the exact version 1.6.0 is supported in Expo and a patch release since that is incompatible with current Expo