[iOS] Native modules not loaded RN 0.79
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 thanks for the support! We'll add the fix asap!