rive-react-native package.
Because this package contains custom native code, it’s not compatible with Expo Go. Instead, you’ll need to use a development build, which gives you full access to native modules.
Development builds are the recommended setup for production apps.
Initial Setup
If you don’t already have a project, create a new Expo app:iOS Minimum Version
Rive for iOS requires a minimum deployment target of14.0.
If you’re using Expo SDK 52 or later, you can skip this step as 14.0 is already the default.
If you’re using an older SDK, you’ll need to update your iOS deployment target manually or via configuration.
Option 1: Using expo-build-properties (Recommended)
Continuous Native Generation (CNG) simplifies app maintenance and configuration by automatically generating your iOS and Android native projects using Prebuild.
If you’re using CNG, you can set the minimum iOS deployment target directly in your app.json or app.config.js:
Option 2: Manual Configuration
If you’re not using Prebuild, update the target directly in yourios/Podfile:
Creating a Development Build
To run your app with the Rive runtime, you’ll need to create a development build. Since there are several ways to do this, refer to the Expo development builds guide to choose the method that best suits your needs.Running Your App
Once you’ve created a development build and installed it on your device or simulator, start your app with:If you encounter this error:
Invariant Violation: requireNativeComponent: "RiveReactNativeView" was not found in the UIManager,
it usually means the app is running in Expo Go. Press s in your terminal and select the development build instead.Adding Local Assets
The example above loads a.riv file from a remote URL.
To use local .riv files, they must be bundled into your native build.
See Loading in Rive Files for instructions on working with local assets.