@hoddy-ui/next 2.5.94 → 2.5.95
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/components/AdaptiveStatusBarNext.tsx +1 -5
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -197,7 +197,7 @@ function initialize(config2) {
|
|
|
197
197
|
|
|
198
198
|
// components/AdaptiveStatusBarNext.tsx
|
|
199
199
|
import { useFocusEffect } from "expo-router";
|
|
200
|
-
import React4
|
|
200
|
+
import React4 from "react";
|
|
201
201
|
import { Platform as Platform3, StatusBar } from "react-native";
|
|
202
202
|
|
|
203
203
|
// ../src/hooks.ts
|
|
@@ -446,7 +446,6 @@ var ConfigureSystemUI = () => {
|
|
|
446
446
|
NavigationBar.setStyle("dark");
|
|
447
447
|
}
|
|
448
448
|
} else {
|
|
449
|
-
NavigationBar.setBackgroundColorAsync(colors2.white[1]);
|
|
450
449
|
if (theme === "dark") {
|
|
451
450
|
NavigationBar.setButtonStyleAsync("light");
|
|
452
451
|
} else {
|
|
@@ -578,15 +577,11 @@ var useNavScreenOptions = (type) => {
|
|
|
578
577
|
|
|
579
578
|
// components/AdaptiveStatusBarNext.tsx
|
|
580
579
|
var AdaptiveStatusBar = ({ translucent = false }) => {
|
|
581
|
-
const [focused, setFocused] = useState2(false);
|
|
582
580
|
const colors2 = useColors();
|
|
583
581
|
const theme = useTheme();
|
|
584
582
|
const statusbarHandler = () => {
|
|
585
583
|
StatusBar.setBarStyle(theme === "dark" ? "light-content" : "dark-content");
|
|
586
584
|
if (Platform3.OS === "android") {
|
|
587
|
-
StatusBar.setBackgroundColor(
|
|
588
|
-
translucent ? "transparent" : colors2.white[1]
|
|
589
|
-
);
|
|
590
585
|
StatusBar.setTranslucent(true);
|
|
591
586
|
}
|
|
592
587
|
};
|