Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native Error - The native part of Reanimated doesn't seem to be initialized #4673

Closed
Ritik1330 opened this issue Jul 4, 2023 · 9 comments
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android

Comments

@Ritik1330
Copy link

Description

when i use react drowar navigation and setup the reanimated i got this error

ERROR [Reanimated] The native part of Reanimated doesn't seem to be initialized. This could be caused by

  • not rebuilding the app after installing or upgrading Reanimated
  • trying to run Reanimated on an unsupported platform
  • running in a brownfield app without manually initializing the native library

ERROR Error: Requiring module "node_modules/react-native-reanimated/src/index.ts", which threw an exception: TypeError: Cannot read property 'installCoreFunctions' of undefined, js engine: hermes

ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.

Steps to reproduce

this issu with reactdrower navigation

Snack or a link to a repository

https://stackoverflow.com/questions/76265185/react-native-error-the-native-part-of-reanimated-doesnt-seem-to-be-initialize

Reanimated version

3.3.0

React Native version

7.2

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

android 8

Acknowledgements

Yes

@Ritik1330 Ritik1330 added the Needs review Issue is ready to be reviewed by a maintainer label Jul 4, 2023
@github-actions github-actions bot added Platform: Android This issue is specific to Android Missing repro This issue need minimum repro scenario labels Jul 4, 2023
@github-actions
Copy link

github-actions bot commented Jul 4, 2023

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@tomekzaw
Copy link
Member

tomekzaw commented Jul 5, 2023

@Ritik1330 have you seen #4663?

@Ritik1330
Copy link
Author

i found the solution of this juast create project with react native latest varsion

@yxwandroid

This comment was marked as duplicate.

@yxwandroid
Copy link

遇到相同的问题 请问如何解决

@artemis-prime
Copy link

artemis-prime commented Aug 14, 2023

This seems to be fixed with the combo of RN 0.72.x and RNR 3.4.x So no need to modify any AppDelegate files.

And don't forget to do pod install and also to start metro with --reset-cache to pick up the new version of the babel plugin

@JCcastagne
Copy link

Why is this issue closed if the error persists?

@JCcastagne
Copy link

If anyone else is having issues even after doing everything that was mentioned, here's what finally worked for me:

  1. Delete the following folders: ios, android, node_modules.
  2. Restart computer.
  3. update package.json : "expo-dev-client": "~2.4.6" --> "expo-dev-client": "2.4.7" and also "react-native-reanimated": "~3.3.0" --> "react-native-reanimated": "^3.4.1".
  4. npm install
  5. npx expo install
  6. npx expo prebuild
  7. npx expo run:ios

@martinacostapaisanos
Copy link

If anyone else is having issues even after doing everything that was mentioned, here's what finally worked for me:

  1. Delete the following folders: ios, android, node_modules.
  2. Restart computer.
  3. update package.json : "expo-dev-client": "~2.4.6" --> "expo-dev-client": "2.4.7" and also "react-native-reanimated": "~3.3.0" --> "react-native-reanimated": "^3.4.1".
  4. npm install
  5. npx expo install
  6. npx expo prebuild
  7. npx expo run:ios

Works for me! Thanks.

I have only react-native-reanimated, so I update only that to 3.4.1 and works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

6 participants