react-native-edge-to-edge 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -11
- package/android/build.gradle +1 -1
- package/android/src/main/res/values/public.xml +4 -0
- package/android/src/main/res/values/styles.xml +48 -0
- package/android/src/main/res/values-v27/styles.xml +20 -0
- package/android/src/main/res/values-v29/styles.xml +28 -0
- package/android/src/main/res/values-v30/styles.xml +28 -0
- package/dist/commonjs/expo.js +5 -1
- package/dist/commonjs/expo.js.map +1 -1
- package/dist/module/expo.js +5 -1
- package/dist/module/expo.js.map +1 -1
- package/dist/typescript/expo.d.ts +1 -1
- package/dist/typescript/expo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/expo.ts +11 -1
package/README.md
CHANGED
|
@@ -47,16 +47,20 @@ $ yarn add react-native-edge-to-edge
|
|
|
47
47
|
|
|
48
48
|
This library requires you to update the parent of your Android `AppTheme` to an edge-to-edge version. Don't worry, it's very easy to understand! You just need to choose a theme based on the current value:
|
|
49
49
|
|
|
50
|
-
| If you currently have…
|
|
51
|
-
|
|
|
52
|
-
| `Theme.AppCompat.DayNight.NoActionBar`
|
|
53
|
-
| `Theme.MaterialComponents.DayNight.NoActionBar`
|
|
54
|
-
| `Theme.Material3.DayNight.NoActionBar`
|
|
55
|
-
| `Theme.Material3.DynamicColors.DayNight.NoActionBar`
|
|
56
|
-
| `Theme.
|
|
57
|
-
| `Theme.
|
|
58
|
-
| `Theme.
|
|
59
|
-
| `Theme.
|
|
50
|
+
| If you currently have… | …you should use |
|
|
51
|
+
| :------------------------------------------------------------- | :--------------------------------------------------- |
|
|
52
|
+
| `Theme.AppCompat.DayNight.NoActionBar` | `Theme.EdgeToEdge` |
|
|
53
|
+
| `Theme.MaterialComponents.DayNight.NoActionBar` | `Theme.EdgeToEdge.Material2` |
|
|
54
|
+
| `Theme.Material3.DayNight.NoActionBar` | `Theme.EdgeToEdge.Material3` |
|
|
55
|
+
| `Theme.Material3.DynamicColors.DayNight.NoActionBar` | `Theme.EdgeToEdge.Material3.Dynamic` |
|
|
56
|
+
| `Theme.Material3Expressive.DayNight.NoActionBar` | `Theme.EdgeToEdge.Material3Expressive` |
|
|
57
|
+
| `Theme.Material3Expressive.DynamicColors.DayNight.NoActionBar` | `Theme.EdgeToEdge.Material3Expressive.Dynamic` |
|
|
58
|
+
| `Theme.AppCompat.Light.NoActionBar` | `Theme.EdgeToEdge.Light` |
|
|
59
|
+
| `Theme.MaterialComponents.Light.NoActionBar` | `Theme.EdgeToEdge.Material2.Light` |
|
|
60
|
+
| `Theme.Material3.Light.NoActionBar` | `Theme.EdgeToEdge.Material3.Light` |
|
|
61
|
+
| `Theme.Material3.DynamicColors.Light.NoActionBar` | `Theme.EdgeToEdge.Material3.Dynamic.Light` |
|
|
62
|
+
| `Theme.Material3Expressive.Light.NoActionBar` | `Theme.EdgeToEdge.Material3Expressive.Light` |
|
|
63
|
+
| `Theme.Material3Expressive.DynamicColors.Light.NoActionBar` | `Theme.EdgeToEdge.Material3Expressive.Dynamic.Light` |
|
|
60
64
|
|
|
61
65
|
### Expo
|
|
62
66
|
|
|
@@ -88,10 +92,14 @@ type ParentTheme =
|
|
|
88
92
|
| "Material2" // uses `Theme.EdgeToEdge.Material2`
|
|
89
93
|
| "Material3" // uses `Theme.EdgeToEdge.Material3`
|
|
90
94
|
| "Material3.Dynamic" // uses `Theme.EdgeToEdge.Material3.Dynamic`
|
|
95
|
+
| "Material3Expressive" // uses `Theme.EdgeToEdge.Material3Expressive`
|
|
96
|
+
| "Material3Expressive.Dynamic" // uses `Theme.EdgeToEdge.Material3Expressive.Dynamic`
|
|
91
97
|
| "Light" // uses `Theme.EdgeToEdge.Light`
|
|
92
98
|
| "Material2.Light" // uses `Theme.EdgeToEdge.Material2.Light`
|
|
93
99
|
| "Material3.Light" // uses `Theme.EdgeToEdge.Material3.Light`
|
|
94
|
-
| "Material3.Dynamic.Light"
|
|
100
|
+
| "Material3.Dynamic.Light" // uses `Theme.EdgeToEdge.Material3.Dynamic.Light`
|
|
101
|
+
| "Material3Expressive.Light" // uses `Theme.EdgeToEdge.Material3Expressive.Light`
|
|
102
|
+
| "Material3Expressive.Dynamic.Light"; // uses `Theme.EdgeToEdge.Material3Expressive.Dynamic.Light`
|
|
95
103
|
|
|
96
104
|
type Options = {
|
|
97
105
|
android?: {
|
package/android/build.gradle
CHANGED
|
@@ -70,5 +70,5 @@ repositories {
|
|
|
70
70
|
dependencies {
|
|
71
71
|
//noinspection GradleDynamicVersion
|
|
72
72
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
73
|
-
implementation "com.google.android.material:material:${safeExtGet("materialVersion", "1.
|
|
73
|
+
implementation "com.google.android.material:material:${safeExtGet("materialVersion", "1.14.0-alpha04")}"
|
|
74
74
|
}
|
|
@@ -6,9 +6,13 @@
|
|
|
6
6
|
<public name="Theme.EdgeToEdge.Material2" type="style" />
|
|
7
7
|
<public name="Theme.EdgeToEdge.Material3" type="style" />
|
|
8
8
|
<public name="Theme.EdgeToEdge.Material3.Dynamic" type="style" />
|
|
9
|
+
<public name="Theme.EdgeToEdge.Material3Expressive" type="style" />
|
|
10
|
+
<public name="Theme.EdgeToEdge.Material3Expressive.Dynamic" type="style" />
|
|
9
11
|
|
|
10
12
|
<public name="Theme.EdgeToEdge.Light" type="style" />
|
|
11
13
|
<public name="Theme.EdgeToEdge.Material2.Light" type="style" />
|
|
12
14
|
<public name="Theme.EdgeToEdge.Material3.Light" type="style" />
|
|
13
15
|
<public name="Theme.EdgeToEdge.Material3.Dynamic.Light" type="style" />
|
|
16
|
+
<public name="Theme.EdgeToEdge.Material3Expressive.Light" type="style" />
|
|
17
|
+
<public name="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light" type="style" />
|
|
14
18
|
</resources>
|
|
@@ -44,6 +44,28 @@
|
|
|
44
44
|
<item name="android:windowLightStatusBar">@bool/windowLightSystemBars</item>
|
|
45
45
|
</style>
|
|
46
46
|
|
|
47
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.DayNight.Common" parent="Theme.Material3Expressive.DayNight.NoActionBar">
|
|
48
|
+
<item name="enforceNavigationBarContrast">true</item>
|
|
49
|
+
<item name="enforceSystemBarsLightTheme">false</item>
|
|
50
|
+
|
|
51
|
+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
52
|
+
<item name="android:fitsSystemWindows">false</item>
|
|
53
|
+
<item name="android:navigationBarColor">@color/navigationBarColor</item>
|
|
54
|
+
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
55
|
+
<item name="android:windowLightStatusBar">@bool/windowLightSystemBars</item>
|
|
56
|
+
</style>
|
|
57
|
+
|
|
58
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic.DayNight.Common" parent="Theme.Material3Expressive.DynamicColors.DayNight.NoActionBar">
|
|
59
|
+
<item name="enforceNavigationBarContrast">true</item>
|
|
60
|
+
<item name="enforceSystemBarsLightTheme">false</item>
|
|
61
|
+
|
|
62
|
+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
63
|
+
<item name="android:fitsSystemWindows">false</item>
|
|
64
|
+
<item name="android:navigationBarColor">@color/navigationBarColor</item>
|
|
65
|
+
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
66
|
+
<item name="android:windowLightStatusBar">@bool/windowLightSystemBars</item>
|
|
67
|
+
</style>
|
|
68
|
+
|
|
47
69
|
<style name="Theme.EdgeToEdge.Light.Common" parent="Theme.AppCompat.Light.NoActionBar">
|
|
48
70
|
<item name="enforceNavigationBarContrast">true</item>
|
|
49
71
|
<item name="enforceSystemBarsLightTheme">true</item>
|
|
@@ -88,13 +110,39 @@
|
|
|
88
110
|
<item name="android:windowLightStatusBar">true</item>
|
|
89
111
|
</style>
|
|
90
112
|
|
|
113
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Light.Common" parent="Theme.Material3Expressive.Light.NoActionBar">
|
|
114
|
+
<item name="enforceNavigationBarContrast">true</item>
|
|
115
|
+
<item name="enforceSystemBarsLightTheme">false</item>
|
|
116
|
+
|
|
117
|
+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
118
|
+
<item name="android:fitsSystemWindows">false</item>
|
|
119
|
+
<item name="android:navigationBarColor">@color/navigationBarColor</item>
|
|
120
|
+
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
121
|
+
<item name="android:windowLightStatusBar">@bool/windowLightSystemBars</item>
|
|
122
|
+
</style>
|
|
123
|
+
|
|
124
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light.Common" parent="Theme.Material3Expressive.DynamicColors.Light.NoActionBar">
|
|
125
|
+
<item name="enforceNavigationBarContrast">true</item>
|
|
126
|
+
<item name="enforceSystemBarsLightTheme">false</item>
|
|
127
|
+
|
|
128
|
+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
129
|
+
<item name="android:fitsSystemWindows">false</item>
|
|
130
|
+
<item name="android:navigationBarColor">@color/navigationBarColor</item>
|
|
131
|
+
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
132
|
+
<item name="android:windowLightStatusBar">@bool/windowLightSystemBars</item>
|
|
133
|
+
</style>
|
|
134
|
+
|
|
91
135
|
<style name="Theme.EdgeToEdge" parent="Theme.EdgeToEdge.DayNight.Common" />
|
|
92
136
|
<style name="Theme.EdgeToEdge.Material2" parent="Theme.EdgeToEdge.Material2.DayNight.Common" />
|
|
93
137
|
<style name="Theme.EdgeToEdge.Material3" parent="Theme.EdgeToEdge.Material3.DayNight.Common" />
|
|
94
138
|
<style name="Theme.EdgeToEdge.Material3.Dynamic" parent="Theme.EdgeToEdge.Material3.Dynamic.DayNight.Common" />
|
|
139
|
+
<style name="Theme.EdgeToEdge.Material3Expressive" parent="Theme.EdgeToEdge.Material3Expressive.DayNight.Common" />
|
|
140
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.DayNight.Common" />
|
|
95
141
|
|
|
96
142
|
<style name="Theme.EdgeToEdge.Light" parent="Theme.EdgeToEdge.Light.Common" />
|
|
97
143
|
<style name="Theme.EdgeToEdge.Material2.Light" parent="Theme.EdgeToEdge.Material2.Light.Common" />
|
|
98
144
|
<style name="Theme.EdgeToEdge.Material3.Light" parent="Theme.EdgeToEdge.Material3.Light.Common" />
|
|
99
145
|
<style name="Theme.EdgeToEdge.Material3.Dynamic.Light" parent="Theme.EdgeToEdge.Material3.Dynamic.Light.Common" />
|
|
146
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Light" parent="Theme.EdgeToEdge.Material3Expressive.Light.Common" />
|
|
147
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light.Common" />
|
|
100
148
|
</resources>
|
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
21
21
|
</style>
|
|
22
22
|
|
|
23
|
+
<style name="Theme.EdgeToEdge.Material3Expressive" parent="Theme.EdgeToEdge.Material3Expressive.DayNight.Common">
|
|
24
|
+
<item name="android:windowLightNavigationBar">@bool/windowLightSystemBars</item>
|
|
25
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
26
|
+
</style>
|
|
27
|
+
|
|
28
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.DayNight.Common">
|
|
29
|
+
<item name="android:windowLightNavigationBar">@bool/windowLightSystemBars</item>
|
|
30
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
31
|
+
</style>
|
|
32
|
+
|
|
23
33
|
<style name="Theme.EdgeToEdge.Light" parent="Theme.EdgeToEdge.Light.Common">
|
|
24
34
|
<item name="android:windowLightNavigationBar">true</item>
|
|
25
35
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
@@ -39,4 +49,14 @@
|
|
|
39
49
|
<item name="android:windowLightNavigationBar">true</item>
|
|
40
50
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
41
51
|
</style>
|
|
52
|
+
|
|
53
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Light" parent="Theme.EdgeToEdge.Material3Expressive.Light.Common">
|
|
54
|
+
<item name="android:windowLightNavigationBar">true</item>
|
|
55
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
56
|
+
</style>
|
|
57
|
+
|
|
58
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light.Common">
|
|
59
|
+
<item name="android:windowLightNavigationBar">true</item>
|
|
60
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
61
|
+
</style>
|
|
42
62
|
</resources>
|
|
@@ -28,6 +28,20 @@
|
|
|
28
28
|
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
29
29
|
</style>
|
|
30
30
|
|
|
31
|
+
<style name="Theme.EdgeToEdge.Material3Expressive" parent="Theme.EdgeToEdge.Material3Expressive.DayNight.Common">
|
|
32
|
+
<item name="android:windowLightNavigationBar">@bool/windowLightSystemBars</item>
|
|
33
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
34
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
35
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
36
|
+
</style>
|
|
37
|
+
|
|
38
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.DayNight.Common">
|
|
39
|
+
<item name="android:windowLightNavigationBar">@bool/windowLightSystemBars</item>
|
|
40
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
41
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
42
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
43
|
+
</style>
|
|
44
|
+
|
|
31
45
|
<style name="Theme.EdgeToEdge.Light" parent="Theme.EdgeToEdge.Light.Common">
|
|
32
46
|
<item name="android:windowLightNavigationBar">true</item>
|
|
33
47
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
@@ -55,4 +69,18 @@
|
|
|
55
69
|
<item name="android:enforceStatusBarContrast">false</item>
|
|
56
70
|
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
57
71
|
</style>
|
|
72
|
+
|
|
73
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Light" parent="Theme.EdgeToEdge.Material3Expressive.Light.Common">
|
|
74
|
+
<item name="android:windowLightNavigationBar">true</item>
|
|
75
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
76
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
77
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
78
|
+
</style>
|
|
79
|
+
|
|
80
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light.Common">
|
|
81
|
+
<item name="android:windowLightNavigationBar">true</item>
|
|
82
|
+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
83
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
84
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
85
|
+
</style>
|
|
58
86
|
</resources>
|
|
@@ -28,6 +28,20 @@
|
|
|
28
28
|
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
29
29
|
</style>
|
|
30
30
|
|
|
31
|
+
<style name="Theme.EdgeToEdge.Material3Expressive" parent="Theme.EdgeToEdge.Material3Expressive.DayNight.Common">
|
|
32
|
+
<item name="android:windowLightNavigationBar">@bool/windowLightSystemBars</item>
|
|
33
|
+
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
|
|
34
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
35
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
36
|
+
</style>
|
|
37
|
+
|
|
38
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.DayNight.Common">
|
|
39
|
+
<item name="android:windowLightNavigationBar">@bool/windowLightSystemBars</item>
|
|
40
|
+
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
|
|
41
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
42
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
43
|
+
</style>
|
|
44
|
+
|
|
31
45
|
<style name="Theme.EdgeToEdge.Light" parent="Theme.EdgeToEdge.Light.Common">
|
|
32
46
|
<item name="android:windowLightNavigationBar">true</item>
|
|
33
47
|
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
|
|
@@ -55,4 +69,18 @@
|
|
|
55
69
|
<item name="android:enforceStatusBarContrast">false</item>
|
|
56
70
|
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
57
71
|
</style>
|
|
72
|
+
|
|
73
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Light" parent="Theme.EdgeToEdge.Material3Expressive.Light.Common">
|
|
74
|
+
<item name="android:windowLightNavigationBar">true</item>
|
|
75
|
+
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
|
|
76
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
77
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
78
|
+
</style>
|
|
79
|
+
|
|
80
|
+
<style name="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light" parent="Theme.EdgeToEdge.Material3Expressive.Dynamic.Light.Common">
|
|
81
|
+
<item name="android:windowLightNavigationBar">true</item>
|
|
82
|
+
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
|
|
83
|
+
<item name="android:enforceStatusBarContrast">false</item>
|
|
84
|
+
<item name="android:enforceNavigationBarContrast">?enforceNavigationBarContrast</item>
|
|
85
|
+
</style>
|
|
58
86
|
</resources>
|
package/dist/commonjs/expo.js
CHANGED
|
@@ -11,10 +11,14 @@ const withAndroidEdgeToEdgeTheme = (config, props = {}) => {
|
|
|
11
11
|
Material2: "Theme.EdgeToEdge.Material2",
|
|
12
12
|
Material3: "Theme.EdgeToEdge.Material3",
|
|
13
13
|
"Material3.Dynamic": "Theme.EdgeToEdge.Material3.Dynamic",
|
|
14
|
+
Material3Expressive: "Theme.EdgeToEdge.Material3Expressive",
|
|
15
|
+
"Material3Expressive.Dynamic": "Theme.EdgeToEdge.Material3Expressive.Dynamic",
|
|
14
16
|
Light: "Theme.EdgeToEdge.Light",
|
|
15
17
|
"Material2.Light": "Theme.EdgeToEdge.Material2.Light",
|
|
16
18
|
"Material3.Light": "Theme.EdgeToEdge.Material3.Light",
|
|
17
|
-
"Material3.Dynamic.Light": "Theme.EdgeToEdge.Material3.Dynamic.Light"
|
|
19
|
+
"Material3.Dynamic.Light": "Theme.EdgeToEdge.Material3.Dynamic.Light",
|
|
20
|
+
"Material3Expressive.Light": "Theme.EdgeToEdge.Material3Expressive.Light",
|
|
21
|
+
"Material3Expressive.Dynamic.Light": "Theme.EdgeToEdge.Material3Expressive.Dynamic.Light"
|
|
18
22
|
};
|
|
19
23
|
const cleanupList = new Set(["enforceNavigationBarContrast", "android:enforceNavigationBarContrast", "android:enforceStatusBarContrast", "android:fitsSystemWindows", "android:navigationBarColor", "android:statusBarColor", "android:windowDrawsSystemBarBackgrounds", "android:windowLayoutInDisplayCutoutMode", "android:windowLightNavigationBar", "android:windowLightStatusBar", "android:windowTranslucentNavigation", "android:windowTranslucentStatus"]);
|
|
20
24
|
return (0, _configPlugins.withAndroidStyles)(config, config => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_configPlugins","require","withAndroidEdgeToEdgeTheme","config","props","themes","Default","Material2","Material3","Light","cleanupList","Set","withAndroidStyles","androidNavigationBar","androidStatusBar","userInterfaceStyle","barStyle","navigationBarStyle","statusBarStyle","android","enforceNavigationBarContrast","parentTheme","modResults","resources","style","map","$","name","parent","item","filter","has","push","_","String","_default","exports","default","createRunOncePlugin"],"sourceRoot":"../../src","sources":["expo.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","withAndroidEdgeToEdgeTheme","config","props","themes","Default","Material2","Material3","Material3Expressive","Light","cleanupList","Set","withAndroidStyles","androidNavigationBar","androidStatusBar","userInterfaceStyle","barStyle","navigationBarStyle","statusBarStyle","android","enforceNavigationBarContrast","parentTheme","modResults","resources","style","map","$","name","parent","item","filter","has","push","_","String","_default","exports","default","createRunOncePlugin"],"sourceRoot":"../../src","sources":["expo.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AA2BA,MAAMC,0BAA+C,GAAGA,CACtDC,MAAM,EACNC,KAAK,GAAG,CAAC,CAAC,KACP;EACH,MAAMC,MAAmC,GAAG;IAC1CC,OAAO,EAAE,kBAAkB;IAC3BC,SAAS,EAAE,4BAA4B;IACvCC,SAAS,EAAE,4BAA4B;IACvC,mBAAmB,EAAE,oCAAoC;IACzDC,mBAAmB,EAAE,sCAAsC;IAC3D,6BAA6B,EAC3B,8CAA8C;IAEhDC,KAAK,EAAE,wBAAwB;IAC/B,iBAAiB,EAAE,kCAAkC;IACrD,iBAAiB,EAAE,kCAAkC;IACrD,yBAAyB,EAAE,0CAA0C;IACrE,2BAA2B,EAAE,4CAA4C;IACzE,mCAAmC,EACjC;EACJ,CAAC;EAED,MAAMC,WAAW,GAAG,IAAIC,GAAG,CAAC,CAC1B,8BAA8B,EAC9B,sCAAsC,EACtC,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB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
8
8
|
Material3: "Theme.EdgeToEdge.Material3",
|
|
9
9
|
"Material3.Dynamic": "Theme.EdgeToEdge.Material3.Dynamic",
|
|
10
|
+
Material3Expressive: "Theme.EdgeToEdge.Material3Expressive",
|
|
11
|
+
"Material3Expressive.Dynamic": "Theme.EdgeToEdge.Material3Expressive.Dynamic",
|
|
10
12
|
Light: "Theme.EdgeToEdge.Light",
|
|
11
13
|
"Material2.Light": "Theme.EdgeToEdge.Material2.Light",
|
|
12
14
|
"Material3.Light": "Theme.EdgeToEdge.Material3.Light",
|
|
13
|
-
"Material3.Dynamic.Light": "Theme.EdgeToEdge.Material3.Dynamic.Light"
|
|
15
|
+
"Material3.Dynamic.Light": "Theme.EdgeToEdge.Material3.Dynamic.Light",
|
|
16
|
+
"Material3Expressive.Light": "Theme.EdgeToEdge.Material3Expressive.Light",
|
|
17
|
+
"Material3Expressive.Dynamic.Light": "Theme.EdgeToEdge.Material3Expressive.Dynamic.Light"
|
|
14
18
|
};
|
|
15
19
|
const cleanupList = new Set(["enforceNavigationBarContrast", "android:enforceNavigationBarContrast", "android:enforceStatusBarContrast", "android:fitsSystemWindows", "android:navigationBarColor", "android:statusBarColor", "android:windowDrawsSystemBarBackgrounds", "android:windowLayoutInDisplayCutoutMode", "android:windowLightNavigationBar", "android:windowLightStatusBar", "android:windowTranslucentNavigation", "android:windowTranslucentStatus"]);
|
|
16
20
|
return withAndroidStyles(config, config => {
|
package/dist/module/expo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createRunOncePlugin","withAndroidStyles","withAndroidEdgeToEdgeTheme","config","props","themes","Default","Material2","Material3","Light","cleanupList","Set","androidNavigationBar","androidStatusBar","userInterfaceStyle","barStyle","navigationBarStyle","statusBarStyle","android","enforceNavigationBarContrast","parentTheme","modResults","resources","style","map","$","name","parent","item","filter","has","push","_","String"],"sourceRoot":"../../src","sources":["expo.ts"],"mappings":";;AAAA,SAEEA,mBAAmB,EACnBC,iBAAiB,QACZ,sBAAsB;
|
|
1
|
+
{"version":3,"names":["createRunOncePlugin","withAndroidStyles","withAndroidEdgeToEdgeTheme","config","props","themes","Default","Material2","Material3","Material3Expressive","Light","cleanupList","Set","androidNavigationBar","androidStatusBar","userInterfaceStyle","barStyle","navigationBarStyle","statusBarStyle","android","enforceNavigationBarContrast","parentTheme","modResults","resources","style","map","$","name","parent","item","filter","has","push","_","String"],"sourceRoot":"../../src","sources":["expo.ts"],"mappings":";;AAAA,SAEEA,mBAAmB,EACnBC,iBAAiB,QACZ,sBAAsB;AAuB7B,MAAMC,0BAA+C,GAAGA,CACtDC,MAAM,EACNC,KAAK,GAAG,CAAC,CAAC,KACP;EACH,MAAMC,MAAmC,GAAG;IAC1CC,OAAO,EAAE,kBAAkB;IAC3BC,SAAS,EAAE,4BAA4B;IACvCC,SAAS,EAAE,4BAA4B;IACvC,mBAAmB,EAAE,oCAAoC;IACzDC,mBAAmB,EAAE,sCAAsC;IAC3D,6BAA6B,EAC3B,8CAA8C;IAEhDC,KAAK,EAAE,wBAAwB;IAC/B,iBAAiB,EAAE,kCAAkC;IACrD,iBAAiB,EAAE,kCAAkC;IACrD,yBAAyB,EAAE,0CAA0C;IACrE,2BAA2B,EAAE,4CAA4C;IACzE,mCAAmC,EACjC;EACJ,CAAC;EAED,MAAMC,WAAW,GAAG,IAAIC,GAAG,CAAC,CAC1B,8BAA8B,EAC9B,sCAAsC,EACtC,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,yCAAyC,EACzC,yCAAyC,EACzC,kCAAkC,EAClC,8BAA8B,EAC9B,qCAAqC,EACrC,iCAAiC,CAClC,CAAC;EAEF,OAAOX,iBAAiB,CAACE,MAAM,EAAGA,MAAM,IAAK;IAC3C,MAAM;MACJU,oBAAoB,GAAG,CAAC,CAAC;MACzBC,gBAAgB,GAAG,CAAC,CAAC;MACrBC,kBAAkB,GAAG;IACvB,CAAC,GAAGZ,MAAM;IAEV,MAAM;MAAEa,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;UAC1C,IAAIH,kBAAkB,IAAI,IAAI,EAAE;YAC9BO,KAAK,CAACK,IAAI,CAACG,IAAI,CAAC;cACdN,CAAC,EAAE;gBAAEC,IAAI,EAAE;cAAmC,CAAC;cAC/CM,CAAC,EAAEC,MAAM,CAACjB,kBAAkB,KAAK,cAAc;YACjD,CAAC,CAAC;UACJ,CAAC,MAAM,IAAIF,kBAAkB,KAAK,WAAW,EAAE;YAC7CS,KAAK,CAACK,IAAI,CAACG,IAAI,CAAC;cACdN,CAAC,EAAE;gBAAEC,IAAI,EAAE;cAAmC,CAAC;cAC/CM,CAAC,EAAEC,MAAM,CAACjB,kBAAkB,KAAK,OAAO;YAC1C,CAAC,CAAC;UACJ;UAEAO,KAAK,CAACK,IAAI,CAACG,IAAI,CAAC;YACdN,CAAC,EAAE;cAAEC,IAAI,EAAE;YAA+B,CAAC;YAC3CM,CAAC,EAAEC,MAAM,CAAC,KAAK;UACjB,CAAC,CAAC;QACJ;MACF;MAEA,OAAOV,KAAK;IACd,CACF,CAAC;IAED,OAAOrB,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAED,eAAeH,mBAAmB,CAChCE,0BAA0B,EAC1B,2BACF,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigPlugin } from "@expo/config-plugins";
|
|
2
|
-
type ParentTheme = "Default" | "Material2" | "Material3" | "Material3.Dynamic" | "Light" | "Material2.Light" | "Material3.Light" | "Material3.Dynamic.Light";
|
|
2
|
+
type ParentTheme = "Default" | "Material2" | "Material3" | "Material3.Dynamic" | "Material3Expressive" | "Material3Expressive.Dynamic" | "Light" | "Material2.Light" | "Material3.Light" | "Material3.Dynamic.Light" | "Material3Expressive.Light" | "Material3Expressive.Dynamic.Light";
|
|
3
3
|
type AndroidProps = {
|
|
4
4
|
enforceNavigationBarContrast?: boolean;
|
|
5
5
|
parentTheme?: ParentTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo.d.ts","sourceRoot":"","sources":["../../src/expo.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAE9B,KAAK,WAAW,GACZ,SAAS,GACT,WAAW,GACX,WAAW,GACX,mBAAmB,GACnB,OAAO,GACP,iBAAiB,GACjB,iBAAiB,GACjB,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"expo.d.ts","sourceRoot":"","sources":["../../src/expo.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAE9B,KAAK,WAAW,GACZ,SAAS,GACT,WAAW,GACX,WAAW,GACX,mBAAmB,GACnB,qBAAqB,GACrB,6BAA6B,GAC7B,OAAO,GACP,iBAAiB,GACjB,iBAAiB,GACjB,yBAAyB,GACzB,2BAA2B,GAC3B,mCAAmC,CAAC;AAExC,KAAK,YAAY,GAAG;IAClB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,KAAK,KAAK,GAAG;IAAE,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,GAAG,SAAS,CAAC;;AAsGpD,wBAGE"}
|
package/package.json
CHANGED
package/src/expo.ts
CHANGED
|
@@ -9,10 +9,14 @@ type ParentTheme =
|
|
|
9
9
|
| "Material2"
|
|
10
10
|
| "Material3"
|
|
11
11
|
| "Material3.Dynamic"
|
|
12
|
+
| "Material3Expressive"
|
|
13
|
+
| "Material3Expressive.Dynamic"
|
|
12
14
|
| "Light"
|
|
13
15
|
| "Material2.Light"
|
|
14
16
|
| "Material3.Light"
|
|
15
|
-
| "Material3.Dynamic.Light"
|
|
17
|
+
| "Material3.Dynamic.Light"
|
|
18
|
+
| "Material3Expressive.Light"
|
|
19
|
+
| "Material3Expressive.Dynamic.Light";
|
|
16
20
|
|
|
17
21
|
type AndroidProps = {
|
|
18
22
|
enforceNavigationBarContrast?: boolean;
|
|
@@ -30,11 +34,17 @@ const withAndroidEdgeToEdgeTheme: ConfigPlugin<Props> = (
|
|
|
30
34
|
Material2: "Theme.EdgeToEdge.Material2",
|
|
31
35
|
Material3: "Theme.EdgeToEdge.Material3",
|
|
32
36
|
"Material3.Dynamic": "Theme.EdgeToEdge.Material3.Dynamic",
|
|
37
|
+
Material3Expressive: "Theme.EdgeToEdge.Material3Expressive",
|
|
38
|
+
"Material3Expressive.Dynamic":
|
|
39
|
+
"Theme.EdgeToEdge.Material3Expressive.Dynamic",
|
|
33
40
|
|
|
34
41
|
Light: "Theme.EdgeToEdge.Light",
|
|
35
42
|
"Material2.Light": "Theme.EdgeToEdge.Material2.Light",
|
|
36
43
|
"Material3.Light": "Theme.EdgeToEdge.Material3.Light",
|
|
37
44
|
"Material3.Dynamic.Light": "Theme.EdgeToEdge.Material3.Dynamic.Light",
|
|
45
|
+
"Material3Expressive.Light": "Theme.EdgeToEdge.Material3Expressive.Light",
|
|
46
|
+
"Material3Expressive.Dynamic.Light":
|
|
47
|
+
"Theme.EdgeToEdge.Material3Expressive.Dynamic.Light",
|
|
38
48
|
};
|
|
39
49
|
|
|
40
50
|
const cleanupList = new Set([
|