From 50b3d64999141a6b03735d1c13cf93d299be8aaf Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Mon, 27 Jul 2026 12:09:54 +0200 Subject: [PATCH] Correct patch docs: production Android builds compile RN from source buildReactNativeFromSource: IS_PRODUCTION in app.config.js makes expo-build-properties inject the source-build substitution at prebuild, so the ReactViewGroup.kt hunk is active in production releases. Only local dev builds (prebuilt AAR) do not get it. Co-Authored-By: Claude Fable 5 --- patches/react-native@0.81.5.patch.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/patches/react-native@0.81.5.patch.md b/patches/react-native@0.81.5.patch.md index 1c8d28569d..4d30ba83af 100644 --- a/patches/react-native@0.81.5.patch.md +++ b/patches/react-native@0.81.5.patch.md @@ -84,12 +84,13 @@ Not fixed upstream as of July 2026 (identical `checkNotNull` on `main`); the sib attempt facebook/react-native#57365 for the same bookkeeping corruption (different stack) was abandoned. Re-check when bumping React Native. -**Caveat: this hunk has no effect on the shipped app today.** The Android build consumes the -prebuilt `com.facebook.react:react-android` artifact from Maven Central, not the Kotlin -sources in node_modules (unlike the iOS hunks above, which CocoaPods compiles from source). -It only takes effect if we enable building React Native Android from source -(`includeBuild` + dependency substitution in `android/settings.gradle`), or once an -equivalent fix ships upstream. Kept so the fix is ready and documented either way. +Note on build modes: production Android builds compile react-android from source +(`buildReactNativeFromSource: IS_PRODUCTION` via expo-build-properties in app.config.js +injects the includeBuild/dependency-substitution block at prebuild), so this hunk IS +active in production releases. Local dev builds prebuilt in a non-production env consume +the prebuilt AAR from Maven Central instead, where this hunk (like any ReactAndroid +source change) has no effect - do not expect to see the fix in a local debug build unless +you prebuild with EXPO_PUBLIC_ENV=production or add the substitution block manually. ## RCTTextLayoutManager.mm Patch - Text overflows instead of wrapping on the last line