Commit ff3c9f1
Fix Android release APK crash: enable new architecture for RN 0.84
The release APK was crashing with "TurboModuleRegistry.getEnforcing(...):
'PlatformConstants' could not be found" because newArchEnabled was set to
false while MainApplication.kt uses bridgeless/new-arch APIs
(loadReactNative, getDefaultReactHost). RN 0.84 requires new arch enabled
for core TurboModules like PlatformConstants to be registered.
- Enable newArchEnabled=true in gradle.properties (default for RN 0.84)
- Pass -PnewArchEnabled=false only for Detox Android builds which need old arch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b098777 commit ff3c9f1
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
0 commit comments