ReactNativeNavigationModule not found.
What happened?
In react-native 0.77.x using react-native-navigation 8.1.0, the build failed with ReactNativeNavigation module not found on AppDelegate.swift file.
What was the expected behaviour?
No response
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!
No response
In what environment did this happen?
React Native Navigation version: 8.1.0 React Native version: 0.77.0 Has Fabric (React Native's new rendering system) enabled: (yes/no) yes Node version: 20.19.0 Device model: iOS version: iPhone 16 Pro
I am facing the same issue:
Steps I took:
npx @react-native-community/cli@latest init test --version 0.77.2
yarn add [email protected]
npx rnn-link
cd ios && pod install
Result: Build fails with error: no such module 'ReactNativeNavigation'
If I experiment with things like use_frameworks! :static or modular headers, the build gets past that point but then explodes with a bunch of other compile errors.
Same here. Also tried to tweak the Podfile and also tried use_frameworks!: static but broke further down.
I also tried to replace AppDelegate.swift with AppDelegate.mm/h, but I'm not sure what to put inside the .mm.
Also facing this issue. Xcode: 16.3 React Native Navigation version: 8.1.0 React Native version: 0.77.0
Steps to reproduce
Just ran npx @react-native-community/cli init AwesomeProject --version 0.77 and followed the manual ios instructions
https://wix.github.io/react-native-navigation/docs/installing
During pod install phase this pops up
ReactNativeNavigation: Objective-C AppDelegate detected - using standard configuration
Downloading dependencies
Installing HMSegmentedControl (1.5.6)
Installing React-Codegen (0.1.0)
Installing ReactNativeNavigation (8.1.0)
The AppDelegate file is swift, not Objective-C, this could be incorrect.
Did anyone manage to fix this?
Managed to fix this by switching back to an obj-c AppDelegate. Might work for some, but I've got other plugins like react-native-maps that break after switching back to obj-c.
@dcoulter45 Thanks for the patch. It fixes the error ReactNativeNavigationModule not found.
fixed in #8056