Skip to content

Commit d4d4463

Browse files
committed
fix: stabilize RN shopping-list iOS startup
Align the Expo 53 Metro toolchain and pin the shopping-list React version so the iOS example avoids the renderer crash during startup while keeping package exports resolution working in the monorepo. Made-with: Cursor
1 parent 05a85e7 commit d4d4463

File tree

4 files changed

+65
-508
lines changed

4 files changed

+65
-508
lines changed

examples/react-native/shopping-list/metro.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config.watchFolders = [monorepoRoot]
1212
// Ensure symlinks are followed (important for pnpm)
1313
config.resolver.unstable_enableSymlinks = true
1414
config.resolver.unstable_enablePackageExports = true
15+
config.resolver.unstable_conditionNames = ['react-native']
1516

1617
const localNodeModules = path.resolve(projectRoot, 'node_modules')
1718

examples/react-native/shopping-list/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"expo-status-bar": "~2.2.0",
3232
"metro": "0.82.5",
3333
"metro-cache": "0.82.5",
34-
"react": "^19.2.4",
34+
"react": "19.0.0",
3535
"react-native": "0.79.6",
3636
"react-native-safe-area-context": "5.4.0",
3737
"react-native-screens": "~4.11.1"

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@
1010
"pnpm": {
1111
"overrides": {
1212
"metro": "0.82.5",
13-
"metro-cache": "0.82.5"
13+
"metro-babel-transformer": "0.82.5",
14+
"metro-cache": "0.82.5",
15+
"metro-cache-key": "0.82.5",
16+
"metro-config": "0.82.5",
17+
"metro-core": "0.82.5",
18+
"metro-file-map": "0.82.5",
19+
"metro-minify-terser": "0.82.5",
20+
"metro-resolver": "0.82.5",
21+
"metro-runtime": "0.82.5",
22+
"metro-source-map": "0.82.5",
23+
"metro-symbolicate": "0.82.5",
24+
"metro-transform-plugins": "0.82.5",
25+
"metro-transform-worker": "0.82.5"
1426
},
1527
"onlyBuiltDependencies": [
1628
"better-sqlite3",

0 commit comments

Comments
 (0)