6

I am trying to include a YouTube video in my react native project. Since I already tried react-native-youtube and did not work at all I tried installing react-native-video.

However, I am getting the following error: enter image description here

I tried: deleting my node_modules and npm i again followed by react-native link and react-native link react-native-video. Several times.

My package.json:

enter image description here

HristoTotov
  • 133
  • 1
  • 2
  • 5
  • your source? `` component parameters? .... from source ` const RCTVideoInstance = this.getViewManagerConfig('RCTVideo');` fails – xadm Feb 01 '20 at 15:56
  • This is happening to me on android too, any help? – J-- Jan 02 '22 at 11:07

3 Answers3

2

For Android using Expo and EAS Build I just ran

eas build --profile development --platform android

This fixed my issue

I assume with pure React Native too you just need to rebuild the App.

Sizo Develops
  • 118
  • 1
  • 8
0

react-native: 0.63.4: the problem is with linking, the issue got fixed by following these steps:

  • -removing the Pods folder from the ios folder:
  • -removing the node modules
  • -removing the build using this command: rm -rf ios/build
  • -running Yarn to reinstall the packages
  • -installing Pods using this command: cd ios && pod install --repo-update && cd ..
  • -running the ios build
  • -starting react native and removing the cache with this command: yarn start --reset-cache
Abed Ayoub
  • 121
  • 1
  • 3
0

This worked for me

  • react-native link
  • cd ios && pod install
  • check in podfile that react-native-video is added or not.
  • If not add it manually and run pod install.
  • then in xcode build Phases check search video , if you found video package already added then run app and check.
  • otherwise add it manually in Link Binary with Libraries.
  • and run app.