Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

correctly update bar style

ammarahm-edfc8a1954bb49
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);