fix(mobile): hoist expo + correct @expo/metro-runtime version for SDK 52
PackageList.java generated by RN autolinking imported expo.core.ExpoModulesPackage
(old SDK <48 name). Root cause: RN CLI couldn't read expo's react-native.config.js
through the pnpm symlink (it lives at .pnpm/expo@52..../expo/react-native.config.js),
so it fell back to deriving the import path from expo's Android gradle namespace
("expo.core") + assumed class name (ExpoModulesPackage), producing a path that
doesn't exist (the actual class lives at expo.modules.ExpoModulesPackage).
Added "expo" to .npmrc public-hoist-pattern so RN's autolinking can resolve
expo's react-native.config.js via the standard node_modules lookup. That config
explicitly sets packageImportPath to the correct expo.modules.ExpoModulesPackage.
Also corrected @expo/metro-runtime from 55.0.11 (added blindly earlier) to ~4.0.1
which is the SDK-52-aligned version.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
"@chat-app/db-types": "workspace:*",
|
||||
"@chat-app/shared": "workspace:*",
|
||||
"@config-plugins/react-native-webrtc": "^10.0.0",
|
||||
"@expo/metro-runtime": "^55.0.11",
|
||||
"@expo/metro-runtime": "^4.0.1",
|
||||
"@livekit/react-native": "^2.10.3",
|
||||
"@livekit/react-native-webrtc": "^144.0.0",
|
||||
"@react-native-async-storage/async-storage": "^1.23.1",
|
||||
|
||||
Reference in New Issue
Block a user