Skip to content

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

fix: navbar color not follow app theme

ammarahm-edbf676e48df66
diff --git a/apps/mobile/src/components/launcher/index.js b/apps/mobile/src/components/launcher/index.js
index 088f2333e..e6c1da042 100644
--- a/apps/mobile/src/components/launcher/index.js
+++ b/apps/mobile/src/components/launcher/index.js
@@ -88,8 +88,14 @@ const Launcher = React.memo(
setTimeout(async () => {
if (Platform.OS === 'android') {
NativeModules.RNBars.setStatusBarStyle(!colors.night ? 'light-content' : 'dark-content');
+ NativeModules.RNBars.setNavigationBarStyle(
+ !colors.night ? 'light-content' : 'dark-content'
+ );
await sleep(5);
NativeModules.RNBars.setStatusBarStyle(colors.night ? 'light-content' : 'dark-content');
+ NativeModules.RNBars.setNavigationBarStyle(
+ colors.night ? 'light-content' : 'dark-content'
+ );
} else {
StatusBar.setBarStyle(colors.night ? 'light-content' : 'dark-content');
}
diff --git a/apps/mobile/src/navigation/tabsholder.js b/apps/mobile/src/navigation/tabsholder.js
index d41a767b9..fda0c77ba 100644
--- a/apps/mobile/src/navigation/tabsholder.js
+++ b/apps/mobile/src/navigation/tabsholder.js
@@ -1,7 +1,7 @@
import { activateKeepAwake, deactivateKeepAwake } from '@sayem314/react-native-keep-awake';
import React, { useEffect, useRef } from 'react';
import { Platform, View } from 'react-native';
-import { StatusBar } from 'react-native-bars';
+import { NavigationBar, StatusBar } from 'react-native-bars';
import Animated, { useValue } from 'react-native-reanimated';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { notesnook } from '../../e2e/test.ids';
@@ -334,6 +334,7 @@ export const TabsHolder = React.memo(
}}
>
<StatusBar animated={true} barStyle={colors.night ? 'light-content' : 'dark-content'} />
+ <NavigationBar barStyle={colors.night ? 'light-content' : 'dark-content'} />
{deviceMode ? (
<Tabs
ref={tabBarRef}