Skip to main content
To use Rive with Expo, you’ll need to install the 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.
This guide will walk you through integrating Rive into your Expo project, including installing dependencies, configuring your build, and testing your graphics.

Initial Setup

If you don’t already have a project, create a new Expo app:
npx create-expo-app MyRiveApp
Install the Expo development client:
npx expo install expo-dev-client
Then install the Rive package:

Android - Expo SDK 53

Expo SDK 53 may fail to build on Android due to dependency version conflicts. The Rive Android SDK requires compileSdkVersion 36 and Android Gradle Plugin 8.9.1+, but Expo SDK 53 defaults to lower versions.To fix this, install expo-build-properties and expo-custom-agp:
npx expo install expo-build-properties expo-custom-agp
Then update your app.json or app.config.js:
{
  "expo": {
    "plugins": [
      ["expo-custom-agp", "8.9.2"],
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 36
          }
        }
      ]
    ]
  }
}
After updating, run npx expo prebuild --clean and rebuild your app.

iOS Minimum Version

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:
npx expo start
You can use the following component to test Rive:

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.