Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native module not found, expo-router v3 doesn't work for bare react-native flow #28574

Open
CoSNaYe opened this issue May 2, 2024 · 0 comments
Labels
CLI Versioned Expo CLI -- `npx expo start` iOS needs review Issue is ready to be reviewed by a maintainer Router expo-router

Comments

@CoSNaYe
Copy link

CoSNaYe commented May 2, 2024

Summary

Issue 1

Native module is not found while using expo run:ios, but it works if using Xcode build.

# example error:
No native ExponentConstants module found, are you sure the expo-constants's module is linked properly

Issue 2

I followed all the steps listed in the official doc .
But it doesn't work

* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes

What platform(s) does this occur on?

iOS

SDK Version

50.0.17

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.4
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.2/bin/yarn
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
Watchman: 2024.04.22.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.14.3 - /Users/iancosnaye/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
npmPackages:
expo: ^50.0.0 => 50.0.17
expo-router: ~3.4.10 => 3.4.10
react: 18.2.0 => 18.2.0
react-native: 0.73.8 => 0.73.8
npmGlobalPackages:
eas-cli: 7.8.5
Expo Workflow: bare

Minimal reproducible example

https://github.com/CoSNaYe/expo-bare-flow

1st commit:
init the project with npx react-native@0.73.8 init wuapp --version 0.73.8

2nd commit: c237978148
runs npx install-expo-modules@0.9.1
this shows the issue 1: native module not found while using expo run:ios

3rd commit: 05900a609607
this shows the issue 2: expo-router v3 doesn't work

@CoSNaYe CoSNaYe added CLI Versioned Expo CLI -- `npx expo start` needs validation Issue needs to be validated labels May 2, 2024
@expo-bot expo-bot removed the needs validation Issue needs to be validated label May 2, 2024
@byCedric byCedric added the needs review Issue is ready to be reviewed by a maintainer label May 6, 2024
@byCedric byCedric added Router expo-router iOS labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Versioned Expo CLI -- `npx expo start` iOS needs review Issue is ready to be reviewed by a maintainer Router expo-router
Projects
None yet
Development

No branches or pull requests

3 participants