Commit 7497bbc
committed
fix(sample-mobile): align RN/Expo to the 0.85.3 toolchain and exclude x86_64 sim
The "update everything to latest" pass drifted the mobile samples off the React
Native 0.85 / Expo SDK 56 toolchain, breaking standalone installs/builds:
- react 19.2.6 -> 19.2.3 (must equal react-native-renderer 19.2.3, else
"Incompatible React versions" at runtime); same for react-dom /
react-test-renderer. eslint 10 -> ^8.19.0, jest 30 -> ^29.6.3, @types/jest 29,
typescript -> ^5.8.3, react-native 0.85.2 -> 0.85.3 (matches @react-native/*).
- RN CLI + playground: exclude x86_64 from the iOS simulator build
(EXCLUDED_ARCHS in project.pbxproj + Podfile post_install for all Pod
targets) so it links the arm64-only cpp.js xcframeworks. Regenerate the
RN CLI Podfile.lock for 0.85.3.
- Expo: declare the cpp.js deps its source imports directly
(@cpp.js/core-embind-jsi, @cpp.js/plugin-metro, hermes-compiler) — pnpm's
strict node_modules does not expose them transitively from plugin-react-native.
- Mark the mobile samples private (not published).
- check-external-dependencies: pin the RN 0.85 / Expo SDK 56 toolchain so
`check:deps --update` never bumps these back to npm latest.
Note: Expo's iOS Release build still needs an x86_64-exclusion config plugin
(expo prebuild regenerates the native project), tracked separately.1 parent bdf5336 commit 7497bbc
10 files changed
Lines changed: 1075 additions & 1459 deletions
File tree
- cppjs-samples
- cppjs-playground-mobile-reactnative-cli
- ios
- cppjsSampleReactNativeCLI.xcodeproj
- cppjs-sample-mobile-reactnative-cli
- ios
- cppjsSampleReactNativeCLI.xcodeproj
- cppjs-sample-mobile-reactnative-expo
- scripts
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
0 commit comments