-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Description
Hello Rive Team 👋,
I am integrating rive-react-native into a decoupled Android application where the React Native bundle is loaded at runtime. While this setup works perfectly for our iOS app using autolinking, I am facing challenges with the manual linking process required for our Android architecture.
My current approach leads to a build-time dependency issue, and I'm seeking guidance on the correct procedure for manual linking in this environment. I suspect I might be missing a required dependency or a configuration step.
Problem Details
When syncing the project with Gradle after setting up the manual link, the build fails with an Unresolved reference: viewModelInstance error. The IDE cannot locate the necessary import, and I could not find information on this specific dependency in the documentation.
Steps Taken
- Installed the library in the React Native module using npm install rive-react-native.
- Manually copied the native source code from node_modules/rive-react-native/android/ into my native Android project's app/src/ folder.
- Added the native Rive dependency to the app-level build.gradle file. I have tested with multiple versions:
implementation 'app.rive:rive-android:10.4.1' // Also tried 9.6.5 - Attempted to sync the project with Gradle.
- Found the issue with the viewModelnstance issue
Expected behavior
It should work as i have manually linked it
Screenshots
- Files from the node_module from the react native
- issue in the file
Device & Versions (please complete the following information)
Android SDK API Level 35