Invariant Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager.

See original GitHub issue

Bug

I am unable to get this to work. I’m receiving the following error

`Violation: requireNativeComponent: “RNCPicker” was not found in the UIManager.

This error is located at: in RNCPicker (at PickerIOS.ios.js:107) in RCTView (at View.js:35) in View (at PickerIOS.ios.js:106) in PickerIOS (at Picker.js:142) in Picker (at edit-exercise.modal.tsx:54) in EditExerciseModal (created by inject-with-exerciseStore(EditExerciseModal)) in inject-with-exerciseStore(EditExerciseModal) (at SceneView.js:9) in SceneView (at StackViewLayout.tsx:909) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at StackViewCard.tsx:106) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at screens.native.js:71) in Screen (at StackViewCard.tsx:93) in Card (at createPointerEventsContainer.tsx:95) in Container (at StackViewLayout.tsx:984) in RCTView (at View.js:35) in View (at screens.native.js:101) in ScreenContainer (at StackViewLayout.tsx:393) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at StackViewLayout.tsx:383) in PanGestureHandler (at StackViewLayout.tsx:376) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.tsx:104) in RCTView (at View.js:35) in View (at Transitioner.tsx:267) in Transitioner (at StackView.tsx:41) in StackView (at createNavigator.js:80) in Navigator (at createKeyboardAwareNavigator.js:12) in KeyboardAwareNavigator (at SceneView.js:9) in SceneView (at StackViewLayout.tsx:909) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at StackViewCard.tsx:106) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at screens.native.js:71) in Screen (at StackViewCard.tsx:93) in Card (at createPointerEventsContainer.tsx:95) in Container (at StackViewLayout.tsx:984) in RCTView (at View.js:35) in View (at screens.native.js:101) in ScreenContainer (at StackViewLayout.tsx:393) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at StackViewLayout.tsx:383) in PanGestureHandler (at StackViewLayout.tsx:376) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.tsx:104) in RCTView (at View.js:35) in View (at Transitioner.tsx:267) in Transitioner (at StackView.tsx:41) in StackView (at createNavigator.js:80) in Navigator (at createKeyboardAwareNavigator.js:12) in KeyboardAwareNavigator (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:80) in Navigator (at createAppContainer.js:430) in NavigationContainer (at root-component.tsx:73) in RCTView (at View.js:35) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at react-native-safe-area-view/index.js:163) in SafeView (at withOrientation.js:54) in withOrientation (at root-component.tsx:71) in BackButtonHandler (at root-component.tsx:70) in MobXProvider (at root-component.tsx:69) in RootComponent (at renderApplication.js:40) in RCTView (at View.js:35) in View (at AppContainer.js:98) in RCTView (at View.js:35) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:39)`

Environment info

OS: macOS 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 18.22 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash

Binaries: Node: 12.12.0 - /usr/local/bin/node Yarn: 1.19.1 - /usr/local/bin/yarn npm: 6.11.3 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.2/11B52 - /usr/bin/xcodebuild npmPackages: @react-native-community/cli: ^2.9.0 => 2.9.0 react: 16.8.6 => 16.8.6 react-native: 0.60.5 => 0.60.5 npmGlobalPackages: react-native-cli: 2.0.1

Describe what you expected to happen:

I expected the spinner to show but i received this error. I used the sample code in the readme

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:50
  • Comments:68 (2 by maintainers)

github_iconTop GitHub Comments

126reactions
flatcokecommented, Jan 20, 2020

Restart your simulator after pod install

73reactions
Mariussuvcommented, May 13, 2020

Not sure this is the case for you, but I imported it using “import {Picker} from ‘@react-native-community/picker’;”. And had the same problem for days now. But after changing to “import {Picker} from ‘react-native’;” it works fine now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
“[Invariant Violation: requireNativeComponent ... - Code Grepper
Answers related to “[Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager.]”.
Read more >
How to use react-native-picker-select - LogRocket Blog
requireNativeComponent "RNCPicker" was not found in the UIManager error. You can resolve this error by running: // React Native CLI npm ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found