Improved statusbar color

This commit is contained in:
Arnaud Vergnet 2020-04-20 20:55:37 +02:00
parent 6b04447535
commit b2073747c9
2 changed files with 6 additions and 7 deletions

11
App.js
View file

@ -115,13 +115,12 @@ export default class App extends React.Component<Props, State> {
* as the android status bar is always set to black.
*/
setupStatusBar() {
if (Platform.OS === 'ios') {
if (ThemeManager.getNightMode()) {
StatusBar.setBarStyle('light-content', true);
} else {
StatusBar.setBarStyle('dark-content', true);
}
if (ThemeManager.getNightMode()) {
StatusBar.setBarStyle('light-content', true);
} else {
StatusBar.setBarStyle('dark-content', true);
}
StatusBar.setBackgroundColor(ThemeManager.getCurrentTheme().colors.surface, true);
}
/**

View file

@ -21,7 +21,7 @@
"barStyle": "light-content",
"hidden": false,
"translucent": false,
"backgroundColor": "#000000"
"backgroundColor": "#be1522"
},
"androidNavigationBar": {
"barStyle": "light-content",