rive-react-native
rive-react-native copied to clipboard
App crashes on IOS for RN = 0.75.4
App crashes on IOS , works fine on Android for RN = 0.75.4
There may be some error in the package itself , as I even commented out all the import statements to check if this issue is replicated , but the issue still lies
I am facing the same issue in react-native 0.75.3 and rive-react-native 7.3.0
@kcadi @imsankalp This has been brought up internally and is currently being discussed. No update to share at this exact time.
@dskuza I've reported the same issue on https://github.com/rive-app/rive-ios/issues/345 with a bit of added context
It looks like a symbol collision between RiveRuntime's Yoga and React Native's Yoga occuring when using static linkage. I thought namespacing Yoga in RiveRuntime might help, what do you think?
As a workaround, downgrading to rive-react-native: 7.0.5 work on my side 👍
As a workaround, downgrading to
rive-react-native: 7.0.5work on my side 👍
Its works on the emulator , but crashes in production
- 1, also happening in version 8.0.0
Same with:
{
"expo": "~52.0.0-preview.19",
"react-native": "0.76.1",
"rive-react-native": "^8.0.0"
}
This should be resolved with 8.2.0. Please let me know if it doesn't work for you and we'll reopen this issue.
Troubleshooting
- Remove
node_modulesandios/Pods - Remove any reference to Rive in
package-lock.jsonoryarn.lockand runyarnornpm iagain - Remove any reference to Rive in the
ios/Podfile.lockand rerunPod install
I have a repo containing a minimal repro here: https://github.com/leemhenson/rive-firebase-yoga-issue
For me, it still fails in exactly the same way as shown in the original screenshot above. You can try it yourself with:
npm install
expo prebuild --clean
xed ios
npm run start
ios/Podfile.lock afterwards shows:
PODS:
...
- rive-react-native (8.2.0):
- React-Core
- RiveRuntime (= 6.3.7)
- RiveRuntime (6.3.7)
...
DEPENDENCIES:
...
- rive-react-native (from `../node_modules/rive-react-native`)
...
SPEC REPOS:
trunk:
...
- RiveRuntime
...
EXTERNAL SOURCES:
...
rive-react-native:
:path: "../node_modules/rive-react-native"
...
SPEC CHECKSUMS:
...
rive-react-native: 0b3d18dcf51499918821bfc2ba01a5e7af9ef434
RiveRuntime: dbcfe1594ef0b03f0bac0952ccb31dd2ed39740a
...
It's unclear to me from previous discussions on this topic whether we are now expected to modify our Podfiles to include:
use_frameworks! :linkage => :static
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
In my repro I have included a custom expo plugin in my app.json which does, but whether it's in the plugins list or not makes no difference to the outcome.
Sorry, I was wrong about it being fixed in 8.2.0. I just pushed the button to release 8.3. @leemhenson It sounds like it's working for you now? Please let me know if you run into any issues with this.