File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
android/src/main/java/com/zoontek/rnedgetoedge Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ object EdgeToEdgeModuleImpl {
89
89
}
90
90
}
91
91
92
- // re-apply WindowInsetsController systemBarsBehavior when app gains focus
92
+ // re-apply WindowInsetsController systemBarsBehavior each time
93
93
// see https://github.com/zoontek/react-native-edge-to-edge/issues/66
94
94
insetsController.systemBarsBehavior =
95
95
WindowInsetsControllerCompat .BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
@@ -104,6 +104,9 @@ object EdgeToEdgeModuleImpl {
104
104
val window = activity.window
105
105
val insetsController = WindowInsetsControllerCompat (window, window.decorView)
106
106
107
+ insetsController.systemBarsBehavior =
108
+ WindowInsetsControllerCompat .BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
109
+
107
110
insetsController.isAppearanceLightStatusBars = when (style) {
108
111
" dark-content" -> true
109
112
" light-content" -> false
@@ -121,6 +124,9 @@ object EdgeToEdgeModuleImpl {
121
124
val window = activity.window
122
125
val insetsController = WindowInsetsControllerCompat (window, window.decorView)
123
126
127
+ insetsController.systemBarsBehavior =
128
+ WindowInsetsControllerCompat .BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
129
+
124
130
insetsController.isAppearanceLightNavigationBars = when (style) {
125
131
" dark-content" -> true
126
132
" light-content" -> false
You can’t perform that action at this time.
0 commit comments