ADD: Change Android soft keys bar along with Theme

This commit is contained in:
marcosrdz 2020-11-16 16:22:52 -05:00
parent 05cb2d2758
commit fb7bea6981
3 changed files with 12 additions and 1 deletions

8
App.js
View file

@ -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]);

4
package-lock.json generated
View file

@ -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",

View file

@ -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",