react-native-video: [BUG]: requireNativeComponent: "RCTVideo" was not found in the UIManager

Version

6.4.2

What platforms are you having the problem on?

Android

System Version

13

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

I get this when trying to mount a video component.

I looked through all possible issues, but it all points to iOS. I thought this happens only on iOS, I wonder why in android, I got no idea

I am using

"react-native": "^0.72.4",

or β€œ0.72.12” to be exact inside node_modules/

Reproduction

Run this repo https://github.com/anasvemmully/rnvtestv642

Reproduction

Run the repo, if patch not applied automatically, apply manually for RNV V6.4.2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15

Most upvoted comments

Wait for the merge before closing πŸ˜ƒ

if anyone encountered similar problem in android, submit the solution, else I will submit an example

i can confirm the PR created fixes this issue.

"react-native-video": "github:freeboub/react-native-video#chore/fixAppBoot",

changed my package.json like this and it works

I was receiving this on android, and I managed to fix it for my instance of this problem. For reference, I am using react-native-tvos, as found in the Ignite TV sample repo, not β€œpure” react-native.

The literal steps I performed were:

  • in package.json, change "react-native": "npm:react-native-tvos@^0.74.2-0", to "react-native": "npm:react-native-tvos@^0.74.3-0",
  • yarn install
  • instead of running yarn start do a yarn run android

It might be that the last bullet is the trick. yarn run android seems to do a full-on recompile of everything, whereas yarn start just bundles things up and serves, I am guessing.

edit: after doing the last bullet, I can just go back to yarn start, as the recompile seems to have solved things going forward.

@freeboub the fix works +1. Thanks πŸ˜ƒ