react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[iOS] Native modules not loaded RN 0.79

Open Yoshi-mb opened this issue 3 weeks ago • 1 comments

What happened?

React Native Navigation 8.6.0 not loading native modules in RN 0.79

Errors like [runtime not ready]: Invariant Violation: @react-native-community/cookies: Add RNCookieManagerIOS.h and RNCookieManagerIOS.m to your Xcode project, js engine: hermes

or

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

What was the expected behaviour?

Native modules correctly loaded

To fix, add RCTEnableTurboModuleInterop(YES); in RNNAppDelegate.mm

#else
    self.reactNativeFactory = [[RCTReactNativeFactory alloc] initWithDelegate:self.reactNativeDelegate];
    self.reactNativeDelegate.dependencyProvider = [RCTAppDependencyProvider new];
    
    RCTAppSetupPrepareApp(application, YES);
    +RCTEnableTurboModuleInterop(YES);
    RCTEnableTurboModuleInteropBridgeProxy(YES);
    
    self.reactNativeFactory.rootViewFactory.reactHost = [self.reactNativeFactory.rootViewFactory createReactHost:launchOptions];
    
    [ReactNativeNavigation bootstrapWithHost:self.reactNativeFactory.rootViewFactory.reactHost];
#endif

Was it tested on latest react-native-navigation?

  • [x] I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

Install any package that uses native module ( legacy or turbomodule ) like @react-native-community/cookies and import it

In what environment did this happen?

React Native Navigation version: 8.6.0 React Native version: 0.79.7 Has Fabric (React Native's new rendering system) enabled: Yes Node version: 22.12.0 Device model: iPhone 17 iOS version: 26.1

Yoshi-mb avatar Dec 10 '25 10:12 Yoshi-mb

@Yoshi-mb thanks for the support! We'll add the fix asap!

markdevocht avatar Dec 11 '25 14:12 markdevocht