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: Native component for "ReactYouTube" doens't exist

See original GitHub issue

I’m stuck on this error 😦 react-native link was successful.

screenshot_20180719-160408

My package.json file:

{ "name": "VideoProject", "version": "0.1.0", "private": true, "devDependencies": { "react-native-scripts": "1.14.0", "jest-expo": "~27.0.0", "react-test-renderer": "16.3.1" }, "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js", "scripts": { "start": "react-native-scripts start", "eject": "react-native-scripts eject", "android": "react-native-scripts android", "ios": "react-native-scripts ios", "test": "jest" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/vector-icons": "^6.3.1", "expo": "^27.0.1", "native-base": "^2.7.1", "react": "16.3.1", "react-native": "~0.55.2", "react-native-youtube": "^1.1.0", "react-navigation": "^2.7.0" } }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
aryalprakashcommented, Jul 28, 2018

@ziyafenn At first I had initiated the project using create-react-native-app and was testing the app on Expo client. So I was getting this error. But later I found that Youtube native player doesn’t work on Expo.

So finally I initiated project using react-native init and run react-native link to solve this error.

0reactions
Goethe0commented, Jan 10, 2019

Im also having this problem w/ expo, I have checked manually, all the links and all of them, looks fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Native component for "ReactYouTube" doens't exist ... - GitHub
I'm stuck on this error :( react-native link was successful. My package.json file: { "name": "VideoProject", "version": "0.1.0", ...
Read more >
reactjs - what does "Invariant Violation : Native component for ...
I imported a third party library using " npm install --save react-native-range-slider" and getting this error! I can't find out where am I...
Read more >
The React Native Crash Course - YouTube
... we will learn how to build react native applications Second Channel:https://www. youtube.com/channel/UCfNFgrUzeDSb-W3L3nnjC5AGithub Repo.
Read more >
React Native Tutorial for Beginners - Build a React Native App
React Native Tutorial for Beginners - Learn to build an amazing React Native app for iOS & Android. Get the full...
Read more >
invariant violation: "main" has not been registered - You.com | The ...
Returns the name of the main component registered from JavaScript. ... Expo React Native Invariant Violation: "main" has not been registered.
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