File tree Expand file tree Collapse file tree
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,16 +118,15 @@ internal fun Window.enableEdgeToEdge() {
118118 } finally {
119119 typedArray.recycle()
120120 }
121+
122+ if (isNavigationBarContrastEnforced) {
123+ WindowInsetsControllerCompat (this , decorView).isAppearanceLightNavigationBars = ! isDarkMode
124+ }
121125 } else if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
122126 navigationBarColor = if (isDarkMode) DarkNavigationBarColor else LightNavigationBarColor
123127 } else {
124128 navigationBarColor = DarkNavigationBarColor
125129 }
126-
127- WindowInsetsControllerCompat (this , decorView).run {
128- isAppearanceLightStatusBars = ! isDarkMode
129- isAppearanceLightNavigationBars = ! isDarkMode
130- }
131130}
132131
133132internal fun Window.disableEdgeToEdge () {
You can’t perform that action at this time.
0 commit comments