Invariant Violation: Native component for "ReactYouTube" doens't exist
See original GitHub issueI’m stuck on this error 😦
react-native link
was successful.
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:
- Created 5 years ago
- Reactions:2
- Comments:5
Top GitHub Comments
@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 runreact-native link
to solve this error.Im also having this problem w/ expo, I have checked manually, all the links and all of them, looks fine.