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. * as the android status bar is always set to black.
*/ */
setupStatusBar() { setupStatusBar() {
if (Platform.OS === 'ios') { if (ThemeManager.getNightMode()) {
if (ThemeManager.getNightMode()) { StatusBar.setBarStyle('light-content', true);
StatusBar.setBarStyle('light-content', true); } else {
} else { StatusBar.setBarStyle('dark-content', true);
StatusBar.setBarStyle('dark-content', true);
}
} }
StatusBar.setBackgroundColor(ThemeManager.getCurrentTheme().colors.surface, true);
} }
/** /**

View file

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