🚀 The new Rive React Native runtime is now public and ready for testing!Try it now: https://github.com/rive-app/rive-nitro-react-nativeCurrent Status:: The new package is in development preview. While it’s functional and actively maintained, the API may change in future releases. We recommend testing thoroughly before using in production applications.Migration Timeline:
- Short term: Complete the new runtime and unblock production usage
- Medium term: Address major concerns in the legacy package while supporting migration
- Long term: Full migration to the new package
- The new package will eventually be distributed on NPM under the name
@rive-app/react-native. - The documentation on this site has not yet been updated to show the new API. Please see the example app for usage information.
- See the feature comparison and roadmap.
Overview
This guide documents how to get started using the React Native runtime library. Rive runtime libraries are open-source. The source is available in its GitHub repository. This library contains an API for React Native apps to easily integrate Rive assets. The minimum iOS target is 14.0See our documentation to add
Rive to an Expo app.
Getting Started
Follow the steps below for a quick start on integrating Rive into your React Native app.1
Install the dependency
2
iOS - Pod Install
cd inside the ios folder and run pod install (if deploying to iOS)If you run into issues here, you may need to bump the
ios deployment version target to at least 14.0. You can find this version in the Podfile of the ios/ folder.3
Android - Set Kotlin Dependency Resolution
This step may be optional - however, if your Android setup in the React Native project does not have Kotlin
v1.8.0+ set up, you may run into duplicate class issues when building the project. To mitigate these issues, as suggested by Kotlin docs, add the following to your dependencies in your application’s build.gradle file to deal with version alignment:4
Add the Rive component