react-native-reanimated: TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')
Description
App crashes with this error:
TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')
Expected behavior
App should not crash.
Actual behavior & steps to reproduce
NA
Snack or minimal code example
NA
Package versions
- React Native: 0.66
- React Native Reanimated: 2.3.0-beta.2
- NodeJS: v14.17.6
- Xcode: 13
- Java & Gradle: latest
Affected platforms
- Android
- iOS
- Web
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 32 (6 by maintainers)
I temporarily resolved that way
downgrade from 2.3.1 to 2.2.4
and with these installation instructions: https://docs.swmansion.com/react-native-reanimated/docs/2.2.0/installation
my environment is like this
Has anyone got this issue still?
I’ve figured it out - there are some steps in the installation docs that must not have been there when I initially installed this package. Step 2 here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#android My app is now starting up successfully. Thanks for the nudge @mjmasn.
Running into the same Issue trying to use reanimated within a Swift Framework.
Thx!!!
I do expereince the same issue, but in my case it fails for App Clip https://developer.apple.com/app-clips/ iOS target. It works for ordinary iOS target.
Here is my Pofdile
and react-native info
@piaskowyk OK so it looks like some changes were made in React Native version 0.58.6 (three years ago!!) that in our case were missing from our
AppDelegate.h
/AppDelegate.m
. We actually generated these using Salesforce’sforcereact
CLI tool so I think they might need to update their templates 😂 No more crash on start for us now 🎉@gavrichards and anyone else still seeing this issue, do you follow the upgrade helper every time you upgrade React Native?
You can see the changes I mean here in
AppDelegate.h
/AppDelegate.m
: https://react-native-community.github.io/upgrade-helper/?from=0.58.6&to=0.66.0Must be some similar changes on the Android side that we’d already made.
@piaskowyk How about this https://codesandbox.io/s/reanimated2playground-83hf7?