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

ReactNativeNavigationModule not found.

Open ramaerion opened this issue 6 months ago • 3 comments

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

ramaerion avatar Jun 17 '25 12:06 ramaerion

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.

ortweinl avatar Jun 17 '25 13:06 ortweinl

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.

kamiranoff avatar Jun 17 '25 15:06 kamiranoff

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.

dcoulter45 avatar Jun 19 '25 10:06 dcoulter45

Did anyone manage to fix this?

Abramovick avatar Jun 22 '25 22:06 Abramovick

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 avatar Jun 26 '25 07:06 dcoulter45

@dcoulter45 Thanks for the patch. It fixes the error ReactNativeNavigationModule not found.

Abramovick avatar Jun 26 '25 14:06 Abramovick

fixed in #8056

gosha212 avatar Jul 21 '25 11:07 gosha212