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
New contributor
Andrii Spivak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
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.