Compare commits

...

1 Commits

Author SHA1 Message Date
Ammar Ahmed
619be028be mobile: fix system bar colors 2023-10-23 13:15:21 +05:00

View File

@@ -384,7 +384,16 @@ const _TabsHolder = () => {
}, []);
useEffect(() => {
changeNavigationBarColor(colors.primary.background, isDark, true);
function updateSystemBars() {
changeNavigationBarColor(colors.primary.background, isDark, true);
StatusBar.setBackgroundColor("transparent");
StatusBar.setTranslucent(true);
StatusBar.setBarStyle(isDark ? "light-content" : "dark-content");
}
updateSystemBars();
setTimeout(() => {
updateSystemBars();
}, 1000);
}, [colors.primary.background, isDark]);
return (
@@ -406,11 +415,7 @@ const _TabsHolder = () => {
: 0
}}
>
<StatusBar
barStyle={isDark ? "light-content" : "dark-content"}
translucent={true}
backgroundColor="transparent"
/>
<StatusBar translucent={true} backgroundColor="transparent" />
{!introCompleted ? (
<NavigationStack />