iosreact-nativecocoapodsreact-native-video

Invariant Violation: requireNativeComponent: "RCTVideo" was not found in the UIManager


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


Solution

  • 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