diff --git a/App.js b/App.js index 451e7e606..e880c2e5c 100644 --- a/App.js +++ b/App.js @@ -33,7 +33,8 @@ import DeviceQuickActions from './class/quick-actions'; import Notifications from './blue_modules/notifications'; import WalletImport from './class/wallet-import'; import Biometric from './class/biometrics'; -import WidgetCommunication from './blue_modules/WidgetCommunication.ios'; +import WidgetCommunication from './blue_modules/WidgetCommunication'; +import changeNavigationBarColor from 'react-native-navigation-bar-color'; const A = require('./blue_modules/analytics'); if (process.env.NODE_ENV !== 'development') { Sentry.init({ @@ -75,6 +76,11 @@ const App = () => { useEffect(() => { if (colorScheme) { BlueCurrentTheme.updateColorScheme(); + if (colorScheme === 'light') { + changeNavigationBarColor(BlueDefaultTheme.colors.background, true, true); + } else { + changeNavigationBarColor(BlueDarkTheme.colors.buttonBackgroundColor, false, true); + } } }, [colorScheme]); diff --git a/package-lock.json b/package-lock.json index 5c20a7297..4b3939b15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19010,6 +19010,10 @@ "react-native-animatable": "1.3.3" } }, + "react-native-navigation-bar-color": { + "version": "git+https://github.com/BlueWallet/react-native-navigation-bar-color.git#34e44b8f44e442133de9d35c35f2679d40982804", + "from": "git+https://github.com/BlueWallet/react-native-navigation-bar-color.git#34e44b8f44e442133de9d35c35f2679d40982804" + }, "react-native-obscure": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/react-native-obscure/-/react-native-obscure-1.2.1.tgz", diff --git a/package.json b/package.json index 0ea005a18..5c5513a8c 100644 --- a/package.json +++ b/package.json @@ -134,6 +134,7 @@ "react-native-linear-gradient": "2.5.6", "react-native-localize": "1.4.2", "react-native-modal": "11.5.6", + "react-native-navigation-bar-color": "git+https://github.com/BlueWallet/react-native-navigation-bar-color.git#34e44b8f44e442133de9d35c35f2679d40982804", "react-native-obscure": "1.2.1", "react-native-passcode-auth": "git+https://github.com/BlueWallet/react-native-passcode-auth.git#a2ff977ba92b36f8d0a5567f59c05cc608e8bd12", "react-native-popup-menu-android": "1.0.3",