skip to Main Content

Error:
Invariant Violation: requireNativeComponent: "RCTVideo" was not found in the UIManager.
using react-native-video(last version)
react-native version >0.60
react-native cli**(NOT EXPO)**
ios

const videoUrl = 'https://www.w3schools.com/html/mov_bbb.mp4';
<Video source={{ uri: videoUrl }} style={vstyles.video} />

const vstyles = StyleSheet.create({
  video: {
    width: '20%',
    height: moderateScale(300),
    marginTop: moderateScale(10),
    borderRadius: moderateScale(8),
  },
});

reinstalling pods doesn`t work

2

Answers


  1. Chosen as BEST ANSWER

    Worked for me:

    Update react-native version from "0.73.6" to "0.75.3"

    run command "pod update hermes-engine --no-repo-update" in ios folder

    Related question: https://stackoverflow.com/staging-ground/78997452


  2. Go to your terminal and enter the following command

    For iOS

    $   cd ios && pod install && cd ..
    

    This will build all dependencies for the iOS devices, next you will need to go to Xcode and build the application again.

    For Anrdoid

    You will need to create a new development build.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search