File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-edge-to-edge" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " Effortlessly enable edge-to-edge display in React Native" ,
6
6
"author" :
" Mathieu Acthernoene <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ const withAndroidEdgeToEdgeTheme: ConfigPlugin = (config) => {
20
20
] ) ;
21
21
22
22
return withAndroidStyles ( config , ( config ) => {
23
- const { userInterfaceStyle = "light" } = config ;
23
+ const { androidStatusBar = { } , userInterfaceStyle = "light" } = config ;
24
+ const { barStyle } = androidStatusBar ;
24
25
25
26
config . modResults . resources . style = config . modResults . resources . style ?. map (
26
27
( style ) : typeof style => {
@@ -33,7 +34,12 @@ const withAndroidEdgeToEdgeTheme: ConfigPlugin = (config) => {
33
34
) ;
34
35
}
35
36
36
- if ( userInterfaceStyle !== "automatic" ) {
37
+ if ( barStyle != null ) {
38
+ style . item . push ( {
39
+ $ : { name : "android:windowLightStatusBar" } ,
40
+ _ : String ( barStyle === "dark-content" ) ,
41
+ } ) ;
42
+ } else if ( userInterfaceStyle !== "automatic" ) {
37
43
style . item . push ( {
38
44
$ : { name : "android:windowLightStatusBar" } ,
39
45
_ : String ( userInterfaceStyle === "light" ) ,
You can’t perform that action at this time.
0 commit comments