diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java index b5d575281b7e58..5daee24ef07bb4 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java @@ -19,6 +19,7 @@ import android.view.ViewGroup; import android.view.ViewStructure; import android.view.Window; +import android.view.WindowInsetsController; import android.view.WindowManager; import android.view.accessibility.AccessibilityEvent; import android.widget.FrameLayout; @@ -395,12 +396,15 @@ private void updateSystemAppearance() { if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) { int activityAppearance = currentActivity.getWindow().getInsetsController().getSystemBarsAppearance(); - int dialogAppearance = mDialog.getWindow().getInsetsController().getSystemBarsAppearance(); - int appearanceMask = activityAppearance ^ dialogAppearance; + int activityLightStatusBars = + activityAppearance & WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS; mDialog .getWindow() .getInsetsController() - .setSystemBarsAppearance(activityAppearance, appearanceMask); + .setSystemBarsAppearance( + activityLightStatusBars, + WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS + ); } else { mDialog .getWindow()