Requirements
Before installing React Native Video, ensure your project meets these requirements:- React Native 0.75 or higher
- react-native-nitro-modules (>=0.31.10) - See Nitro requirements
React Native Video v7 is built on the new React Native architecture and requires Nitro Modules for native bindings. Make sure your React Native version supports the new architecture.
Install dependencies
React Native Video requiresreact-native-nitro-modules as a peer dependency. Install it first:
Install React Native Video
Install the beta version of React Native Video v7:iOS setup
For iOS, you need to install CocoaPods dependencies:Android setup
For Android, the dependencies are automatically linked. No additional setup is required.Patch for React Native < 0.80
If you’re using React Native < 0.80, you need to apply a patch to fix error handling on Android. Without this patch, all errors will be thrown as unknown errors.Apply the patch
Create a
patches directory in your project root and add the Nitro Modules patch. See the full installation guide for patch contents.Expo support
React Native Video includes an Expo config plugin for automatic native configuration.Install the package
Follow the installation steps above to add react-native-video to your Expo project.
Verify installation
To verify that React Native Video is installed correctly, try importing it in your code:App.tsx
Next steps
Quick start
Get your first video playing in minutes
API reference
Explore the complete API documentation