From fc8a1954bb49c7d943c9ae4c57ad8ef31dd03fcf Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Fri, 20 Nov 2020 01:17:21 +0500 Subject: [PATCH] correctly update bar style --- apps/mobile/src/utils/Colors.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/utils/Colors.js b/apps/mobile/src/utils/Colors.js index 67fc4bc39..d577925d8 100644 --- a/apps/mobile/src/utils/Colors.js +++ b/apps/mobile/src/utils/Colors.js @@ -67,10 +67,13 @@ export const COLORS_NOTE = { export function setColorScheme(colors = COLOR_SCHEME, accent = ACCENT) { COLOR_SCHEME = {...colors, accent: accent.color, shade: accent.shade}; - StatusBar.setBarStyle(COLOR_SCHEME.night ? 'light-content' : 'dark-content'); + StatusBar.setBarStyle( + COLOR_SCHEME.night ? 'light-content' : 'dark-content', + true, + ); if (Platform.OS === 'android') { - StatusBar.setTranslucent(true); - StatusBar.setBackgroundColor(COLOR_SCHEME.bg); + StatusBar.setBackgroundColor('transparent', true); + StatusBar.setTranslucent(true,true); } eSendEvent(eThemeUpdated);