question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invariant Violation: Tried to register two views with the same name RNCPicker

See original GitHub issue

Describe the bug
I am trying to implement this react-native-picker-select in the react-native app but after npm install, tried to run the app but Invariant Violation: Tried to register two views with the same name RNCPicker

Screenshots
image

Additional details

  • Device: [e.g. iPhone11]
  • OS: [e.g. iOS14.1]
  • react-native-picker-select version: [e.g. 8.0.1]
  • @react-native-picker/picker”: “^1.8.3”,
  • react-native version: [e.g. 0.63]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:18
  • Comments:33

github_iconTop GitHub Comments

30reactions
stereodeniscommented, Feb 10, 2021

my working together versions

"@react-native-picker/picker": "^1.8.3",
"react-native-picker-select": "^8.0.4",
24reactions
maxencehenneroncommented, Dec 21, 2020

If you have “@react-native-community/picker” installed in your package.json, please replace it to “@react-native-picker/picker”. The dependency changed its npm repository name and it creates this issue if you have the old one still installed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: Tried to register two views with the same ...
To get rid of that, do the following: Since the error is about registering two views with the same name, declare your Picker...
Read more >
Tried to register two views with the same name RNCPicker
Hello everyone I'm trying to use lib `react-native-picker-select` on my custom code, intending to create a custom select picker.
Read more >
Tried to register two views with the same name RNSVGSvgView
Hello, why I get this error message? Tried to register two views with the same name RNSVGSvgVie I want to use svg, and...
Read more >
ERROR Invariant Violation: Tried to register two views with the ...
Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the...
Read more >
Invariant Violation: Tried to register two views with the same ...
Coding example for the question Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider error with ...
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