From 8b00b82a3024f834659e99d0810bada8f3ba9bce Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 4 Nov 2026 14:40:07 +0200 Subject: [PATCH] [APP-3730] Migrate off deprecated react-native-edge-to-edge (#12264) Co-authored-by: Claude Opus 5.5 --- app.config.js | 11 ++-- .../android/src/main/res/values/styles.xml | 2 +- package.json | 3 +- plugins/withAndroidStylesSystemBarsPlugin.js | 31 ++++++++++++ pnpm-lock.yaml | 50 +++++++++++++------ src/components/Dialog/sheet-wrapper.ts | 17 ++++--- src/components/Layout/Header/index.tsx | 11 +++- src/components/Lightbox/chrome/Footer.tsx | 7 ++- src/components/Lightbox/chrome/Header.tsx | 10 ++-- src/components/Lightbox/pager/ImagePager.tsx | 16 +++--- .../components/AuthLayout/Header/index.tsx | 11 +++- src/screens/SignupQueued.tsx | 5 +- src/state/shell/light-status-bar.tsx | 16 +++--- src/view/com/auth/LoggedOut.tsx | 2 +- src/view/shell/Composer.ios.test.tsx | 3 -- src/view/shell/Composer.ios.tsx | 12 ++--- src/view/shell/Composer.tsx | 11 ++-- src/view/shell/index.tsx | 31 ++++++------ 18 files changed, 165 insertions(+), 84 deletions(-) create mode 100644 plugins/withAndroidStylesSystemBarsPlugin.js diff --git a/app.config.js b/app.config.js index 3d3086e22..96fcc1a77 100644 --- a/app.config.js +++ b/app.config.js @@ -349,10 +349,13 @@ module.exports = function (_config) { })), }, ], - [ - 'react-native-edge-to-edge', - {android: {enforceNavigationBarContrast: false}}, - ], + /* + * Mods run in reverse registration order. Register the system bars + * plugin before expo-navigation-bar, which removes + * `android:windowLightNavigationBar` when no `style` is set. + */ + './plugins/withAndroidStylesSystemBarsPlugin.js', + ['expo-navigation-bar', {enforceContrast: false}], /* * Expo runs Gradle mods in reverse registration order. Keep Bitdrift * before Sentry so its plugins block is prepended after Sentry's apply diff --git a/modules/bottom-sheet/android/src/main/res/values/styles.xml b/modules/bottom-sheet/android/src/main/res/values/styles.xml index 6bcdaa55b..05556a37d 100644 --- a/modules/bottom-sheet/android/src/main/res/values/styles.xml +++ b/modules/bottom-sheet/android/src/main/res/values/styles.xml @@ -1,7 +1,7 @@