@@ -75,13 +75,6 @@ const withAndroidEdgeToEdgeTheme: ConfigPlugin<Props> = (
7575 ) ;
7676 }
7777
78- if ( enforceNavigationBarContrast === false ) {
79- style . item . push ( {
80- $ : { name : "enforceNavigationBarContrast" } ,
81- _ : String ( false ) ,
82- } ) ;
83- }
84-
8578 if ( statusBarStyle != null ) {
8679 style . item . push ( {
8780 $ : { name : "android:windowLightStatusBar" } ,
@@ -94,15 +87,22 @@ const withAndroidEdgeToEdgeTheme: ConfigPlugin<Props> = (
9487 } ) ;
9588 }
9689
97- if ( navigationBarStyle != null ) {
98- style . item . push ( {
99- $ : { name : "android:windowLightNavigationBar" } ,
100- _ : String ( navigationBarStyle === "dark-content" ) ,
101- } ) ;
102- } else if ( userInterfaceStyle !== "automatic" ) {
90+ if ( enforceNavigationBarContrast === false ) {
91+ if ( navigationBarStyle != null ) {
92+ style . item . push ( {
93+ $ : { name : "android:windowLightNavigationBar" } ,
94+ _ : String ( navigationBarStyle === "dark-content" ) ,
95+ } ) ;
96+ } else if ( userInterfaceStyle !== "automatic" ) {
97+ style . item . push ( {
98+ $ : { name : "android:windowLightNavigationBar" } ,
99+ _ : String ( navigationBarStyle === "light" ) ,
100+ } ) ;
101+ }
102+
103103 style . item . push ( {
104- $ : { name : "android:windowLightNavigationBar " } ,
105- _ : String ( navigationBarStyle === "light" ) ,
104+ $ : { name : "enforceNavigationBarContrast " } ,
105+ _ : String ( false ) ,
106106 } ) ;
107107 }
108108 }
0 commit comments