@hoddy-ui/next 2.5.93 → 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 +1 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,15 +4,11 @@ import { Platform, StatusBar } from "react-native";
|
|
|
4
4
|
import { useColors, useTheme } from "../../src/hooks";
|
|
5
5
|
|
|
6
6
|
const AdaptiveStatusBar = ({ translucent = false }) => {
|
|
7
|
-
const [focused, setFocused] = useState(false);
|
|
8
7
|
const colors = useColors();
|
|
9
8
|
const theme = useTheme();
|
|
10
9
|
const statusbarHandler = () => {
|
|
11
10
|
StatusBar.setBarStyle(theme === "dark" ? "light-content" : "dark-content");
|
|
12
11
|
if (Platform.OS === "android") {
|
|
13
|
-
StatusBar.setBackgroundColor(
|
|
14
|
-
translucent ? "transparent" : colors.white[1]
|
|
15
|
-
);
|
|
16
12
|
StatusBar.setTranslucent(true);
|
|
17
13
|
}
|
|
18
14
|
};
|
|
@@ -20,7 +16,7 @@ const AdaptiveStatusBar = ({ translucent = false }) => {
|
|
|
20
16
|
useFocusEffect(
|
|
21
17
|
React.useCallback(() => {
|
|
22
18
|
statusbarHandler();
|
|
23
|
-
}, [theme])
|
|
19
|
+
}, [theme]),
|
|
24
20
|
);
|
|
25
21
|
|
|
26
22
|
React.useEffect(() => {
|
package/dist/index.js
CHANGED
|
@@ -519,7 +519,6 @@ var ConfigureSystemUI = () => {
|
|
|
519
519
|
NavigationBar.setStyle("dark");
|
|
520
520
|
}
|
|
521
521
|
} else {
|
|
522
|
-
NavigationBar.setBackgroundColorAsync(colors2.white[1]);
|
|
523
522
|
if (theme === "dark") {
|
|
524
523
|
NavigationBar.setButtonStyleAsync("light");
|
|
525
524
|
} else {
|
|
@@ -651,15 +650,11 @@ var useNavScreenOptions = (type) => {
|
|
|
651
650
|
|
|
652
651
|
// components/AdaptiveStatusBarNext.tsx
|
|
653
652
|
var AdaptiveStatusBar = ({ translucent = false }) => {
|
|
654
|
-
const [focused, setFocused] = (0, import_react5.useState)(false);
|
|
655
653
|
const colors2 = useColors();
|
|
656
654
|
const theme = useTheme();
|
|
657
655
|
const statusbarHandler = () => {
|
|
658
656
|
import_react_native5.StatusBar.setBarStyle(theme === "dark" ? "light-content" : "dark-content");
|
|
659
657
|
if (import_react_native5.Platform.OS === "android") {
|
|
660
|
-
import_react_native5.StatusBar.setBackgroundColor(
|
|
661
|
-
translucent ? "transparent" : colors2.white[1]
|
|
662
|
-
);
|
|
663
658
|
import_react_native5.StatusBar.setTranslucent(true);
|
|
664
659
|
}
|
|
665
660
|
};
|
|
@@ -1643,8 +1638,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1643
1638
|
}
|
|
1644
1639
|
};
|
|
1645
1640
|
const isFloating = labelVariant === "floating";
|
|
1646
|
-
const
|
|
1647
|
-
const labelOpen = labelAlwaysOpen || focused || value || isFloating && hasPlaceholder;
|
|
1641
|
+
const labelOpen = labelAlwaysOpen || focused || value;
|
|
1648
1642
|
const baseHeight = (0, import_react_native_size_matters13.moderateScale)(
|
|
1649
1643
|
multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1650
1644
|
);
|