@hoddy-ui/next 2.0.42 → 2.0.43
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -146,7 +146,8 @@ function colors(theme) {
|
|
|
146
146
|
|
|
147
147
|
// ../src/config/KeyManager.ts
|
|
148
148
|
var config = {
|
|
149
|
-
GOOGLE_MAP_API_KEY: ""
|
|
149
|
+
GOOGLE_MAP_API_KEY: "",
|
|
150
|
+
EDGE_TO_EDGE: false
|
|
150
151
|
};
|
|
151
152
|
function setConfig(key) {
|
|
152
153
|
config = key;
|
|
@@ -160,7 +161,8 @@ function initialize(config2) {
|
|
|
160
161
|
try {
|
|
161
162
|
setConfig({
|
|
162
163
|
GOOGLE_MAP_API_KEY: config2.googleMapApiKey,
|
|
163
|
-
DEFAULT_FONT_FAMILY: config2.fontFamily
|
|
164
|
+
DEFAULT_FONT_FAMILY: config2.fontFamily,
|
|
165
|
+
EDGE_TO_EDGE: config2.edgeToEdge ?? false
|
|
164
166
|
});
|
|
165
167
|
if (config2.colors)
|
|
166
168
|
setExtraColors(config2.colors);
|
|
@@ -336,10 +338,11 @@ function themeReducer(state, { type, payload }) {
|
|
|
336
338
|
var ConfigureSystemUI = () => {
|
|
337
339
|
const theme = useTheme();
|
|
338
340
|
const colors2 = useColors();
|
|
341
|
+
const config2 = getConfig();
|
|
339
342
|
useEffect2(() => {
|
|
340
343
|
if (colors2) {
|
|
341
344
|
SystemUI.setBackgroundColorAsync(colors2.white[1]);
|
|
342
|
-
if (Platform.OS === "android") {
|
|
345
|
+
if (Platform.OS === "android" && !config2.EDGE_TO_EDGE) {
|
|
343
346
|
NavigationBar.setBackgroundColorAsync(colors2.white[1]);
|
|
344
347
|
if (theme === "dark") {
|
|
345
348
|
NavigationBar.setButtonStyleAsync("light");
|