rive-react-native
rive-react-native copied to clipboard
i am also getting this error : Invariant Violation: requireNativeComponent: "RiveReactNativeView" was not found in the UIManager.
<-- Thanks for using Rive!
If something isn't working like you expected, please:
- Make sure you've updated rive-react-native to the latest version: https://www.npmjs.com/package/rive-react-native
- Check out our help center https://help.rive.app/
- You can file a new feature request at https://feedback.rive.app/
If you think you found a bug or if you can't find what you're looking for in our docs, fill out the template below.
-->
Description
<-- A clear and concise description of what the problem is. -->
Provide a Repro
<-- Please provide the most minimal repro you can:
- If the problem is small enough, paste a code snippet
- Otherwise, you can attach a ZIP archive or paste a link to a GitHub repository with the bundle that reproduces the issue
-->
Source .riv
/.rev
file
<--
Attaching runtime-exported .riv
file that reproduces the issue is immensely helpful for our team to identify the problem as fast as possible and fix it.
Please also include the source (.rev
) by downloading a backup from the Editor.
N.B. Because GitHub only supports certain file types use a ZIP archive to upload .riv
/.rev
files to this issue.
You can also privately share the .riv
/.rev
file with us at [email protected].
-->
Expected behavior
<-- A clear and concise description of what you expected to happen. -->
Screenshots
<-- If applicable, add screenshots to help explain your problem. -->
Device & Versions (please complete the following information)
- Device: [e.g. Android Emulator, iOS Simulator]
- OS: [e.g. Android SDK API Level 30, iOS 14.5]
- NPM Version: [Copy-paste the output of
npm --version
e.g.:7.10.2
]
Additional context
<-- Add any other context about the problem here. -->
@mourice38, make sure you run pod install
in the ios
folder of the React Native project.
I broke my head over this for a good few hours. Hopefully this will help some more folks.
Here's what fixed it for me:
- In your RN project's
/ios/Podfile
, updateplatform :ios
to target16
(or higher). Cocoapods does not install the correct native Rive runtimes otherwise. - Remove your current pods from the project with
pod deintegrate
- Re-install them with
pod install --repo-update
. The update bit needs to be explicit because of the behaviour change described here.
Good luck! 🤝
I also have this issue, but on android. So all those iOS fixes wont help.
Any solution for android?
I also have this issue, but on android. So all those iOS fixes wont help.
Any solution for android?
Do you got solution to this?
Do you got solution to this?
Unfortunately, rive-react-native wasn't supported in combination with Expo. I'm not sure if this issue still exists, as I haven't tried it.
Do you got solution to this?
Unfortunately, rive-react-native wasn't supported in combination with Expo. I'm not sure if this issue still exists, as I haven't tried it.
Okay, thanks for quick reply!
I am also having this error on Android, but I'm not using expo. I started my project with react-native-community/cli