Skip to content

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

disable animating statusbar style changes

Ammar Ahmed04e3ed413d0c
diff --git a/apps/mobile/src/navigation/tabsholder.js b/apps/mobile/src/navigation/tabsholder.js
index ad6f1eb85..4f76a2a1b 100644
--- a/apps/mobile/src/navigation/tabsholder.js
+++ b/apps/mobile/src/navigation/tabsholder.js
@@ -255,7 +255,6 @@ export const TabsHolder = React.memo(
}}
>
<StatusBar
- animated={true}
barStyle={colors.night ? 'light-content' : 'dark-content'}
translucent={true}
backgroundColor="transparent"
diff --git a/apps/mobile/src/utils/colorscheme/index.js b/apps/mobile/src/utils/colorscheme/index.js
index 88b2b4efe..5234b4352 100644
--- a/apps/mobile/src/utils/colorscheme/index.js
+++ b/apps/mobile/src/utils/colorscheme/index.js
@@ -113,11 +113,11 @@ export function setColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
useThemeStore.getState().setColors({ ...COLOR_SCHEME });
- StatusBar.setBarStyle(COLOR_SCHEME.night ? 'light-content' : 'dark-content', true);
+ StatusBar.setBarStyle(COLOR_SCHEME.night ? 'light-content' : 'dark-content', false);
if (Platform.OS === 'android') {
AndroidModule.setBackgroundColor(COLOR_SCHEME.bg);
- StatusBar.setBackgroundColor('transparent', true);
- StatusBar.setTranslucent(true, true);
+ StatusBar.setBackgroundColor('transparent', false);
+ StatusBar.setTranslucent(true, false);
}
eSendEvent(eThemeUpdated);