question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS - 'NativeReanimated' could not be found.

See original GitHub issue

Description

When running iOS I get the following error:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be found. Verify that a module by this name is registered in the native binary.

I’ve followed the instructions on the website. Android works fine, this is just an issue with iOS.

I’ve attempted to wipe all the cache, pods, clean install, etc. Nothing seems to solve the problem.

Steps To Reproduce

Here is an example project: https://github.com/BrendonSled/react-native-reanimated-example

Expected Behavior

Runs

Actual Behavior

Doesn’t run

Snack or minimal code example

https://github.com/BrendonSled/react-native-reanimated-example

Package versions

  • React: 17.0.1
  • React Native: 0.63.4
  • React Native Reanimated: 2.0.0
  • NodeJS: 14.15.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16

github_iconTop GitHub Comments

8reactions
BrendonSledcommented, Mar 8, 2021

I finally got it.

In the AppDelegate.m I was using initWithBundleURL which does not seem to be supported. Instead using initWithBridge works.

here is my change:

  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"main"
                                            initialProperties:nil];

This was a missed step when upgrading from RN 0.58 -> 0.59

Screen Shot 2021-03-08 at 12 17 02 PM
0reactions
BrendonSledcommented, Mar 8, 2021

Very weird, as you can see from the screenshot I’m not in the debugging mode and I received that error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: TurboModuleRegistry.getEnforcing ...
getEnforcing(...): 'NativeReanimated' could not be found. Verify that a module by this name is registered in the native binary. I'm using ...
Read more >
Installation | React Native Reanimated - Software Mansion
First step is to install react-native-reanimated as a dependency in your project ... After adding the react-native-reanimated/plugin to your project you may ......
Read more >
'imageloader' could not be found. - You.com | The AI Search ...
Cannot startup ios app after upgrade RN version from 0.59.9 to 0.62.2. Have no idea where the issue is and ... 'NativeReanimated' could...
Read more >
'DevSettings' could not be found-React Native
react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'. Jackson Smith 516.
Read more >
Reanimated - Expo Documentation
react-native-reanimated provides an API that greatly simplifies the process of creating ... Android Device, Android Emulator, iOS Device, iOS Simulator, Web ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found