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

Version

v6.2.0

What platforms are you having the problem on?

Android

System Version

Android 14

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

'use client';

import { FC, memo } from 'react';
import Video from 'react-native-video';

import video from '../../../assets/videos/video.mp4';

type DemoComponentProp = {
  handlePress: () => void;
};

const DemoComponent: FC<DemoComponentProp> = ({ handlePress }) => {
  console.log(video);

  return (
    <View className="absolute left-0 top-0" onPress={handlePress}>
      <Video
        source={video}
        style={{ width: '100%', height: '100%' }}
        repeat
        controls={false}
      />
    </View>
  );
};

export default memo(DemoComponent);

image

Above code makes the error ‘requireNativeComponent: “RCTVideo” was not found in the UIManager’ How can I fix this bug?

Reproduction

repository link

Reproduction

Step to reproduce this bug are: call the <Video> component

About this issue

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

Most upvoted comments

me too, is there any solution here?

Happening for Android

same issue in react native cli in mode releases ios

Hi, I still have this problem

Version v0.71.3

What platforms are you having the problem on? iOS

System Version iOS 17.2

On what device are you experiencing the issue? emulator

ERROR Invariant Violation: requireNativeComponent: “RCTVideo” was not found in the UIManager.

How fix it?

Hi, I still have this problem

Version v6.3.0

What platforms are you having the problem on? Android

System Version Android 14

On what device are you experiencing the issue? Real device

ERROR Invariant Violation: requireNativeComponent: “RCTVideo” was not found in the UIManager.

How fix it?

@mathoukha this repository uses expo https://github.com/freeboub/react-native-video-flatlist-sample It works fine on my side …