React Native issue
I have Rive working well with several projects using react-native 0.73.6 to 0.75.4 and rive-react-native 8.1.0, but I get the following error with one of my projects using react-native 0.75.4 (only after adding a <Rive> component):TypeError: Cannot read property 'bubblingEventTypes' of null'
I am also unable to get it working with the latest version (0.76.3) but that is less of an issue for me
OS: MacOS Sequioa 15.1 on M3 Max
I haven't seen this in the context of Rive, but I did a quick search and other people have solved the issue by removing node_modules
and Pods
and reinstalling both. If that doesn't work, you might want to also try removing package.lock
or yarn.lock
and Pofile.lock
.
If that doesn't work, do you mind sharing a github repo to where I can take a closer look?
Thanks, that didn't work. After lots of trial and error creating new projects (introducing things one at a time), I think I've found a potential cause.
I am using react-native-firebase in my project and it requires I add use_frameworks! :linkage => :static
to my Podfile
.
Adding that one line breaks the app if I have react-native-rive installed. The app just quits with the following error in Xcode:Thread 4: EXC_BAD_ACCESS (code=1, address=0x104100)
Sorry, that's a known issue with the React Runtime. It seems to be a Yoga symbol collision that we introduced here: https://github.com/rive-app/rive-ios/commit/6814254076cfc7e2d5292381f10e9b101ac25db1
Getting this bug squashed once and for all is my top priority this week. I'll keep you posted.
Great to hear that
Do you think your fix will solve this problem ?
https://github.com/rive-app/rive-react-native/issues/262#issuecomment-2503725169
Yep, it should be good to go with rive-react-native 8.3.0. Let me know if you run into any issues!
Thanks