Skip to main content
F
14d ago

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

6 replies
F
R
14d ago

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?

F
12d ago

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)

7d ago
4d ago

Yep, it should be good to go with rive-react-native 8.3.0. Let me know if you run into any issues!

F
2d ago

Thanks - much appreciated! Have a great Christmas!