Default behavior
By default, Rive React Native uses the native SDK versions specified in itspackage.json. For example, @rive-app/react-native 0.5.5 uses:
Customizing versions
You can override these default versions using platform-specific configuration files. See the available native Rive Android and iOS versions.Some features need a minimum native SDK version. For example, GPU Canvas requires Rive iOS
6.25.0 and Rive Android 11.12.0 or later.iOS (vanilla React Native)
Create or editios/Podfile.properties.json:
Android (vanilla React Native)
Add toandroid/gradle.properties:
Expo projects
For Expo projects, use an inline config plugin in yourapp.config.ts:
Version resolution priority
The library resolves versions in the following order: iOS:RIVE_RUNTIME_IOS_VERSIONenvironment variable when runningpod install$RiveRuntimeIOSVersionglobal in yourPodfileios/Podfile.properties.json→RiveRuntimeIOSVersionpackage.json→runtimeVersions.ios(default)
RiveRuntimeAndroidVersionin your root project’sextblock (android/build.gradle)android/gradle.properties→Rive_RiveRuntimeAndroidVersionpackage.json→runtimeVersions.android(default)