From b2073747c94d89eeb918646092cf3ee4bbfe3ed6 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Mon, 20 Apr 2020 20:55:37 +0200 Subject: [PATCH] Improved statusbar color --- App.js | 11 +++++------ app.json | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/App.js b/App.js index 61ad740..1a53fb8 100644 --- a/App.js +++ b/App.js @@ -115,13 +115,12 @@ export default class App extends React.Component { * 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); } /** diff --git a/app.json b/app.json index 464047e..e72911e 100644 --- a/app.json +++ b/app.json @@ -21,7 +21,7 @@ "barStyle": "light-content", "hidden": false, "translucent": false, - "backgroundColor": "#000000" + "backgroundColor": "#be1522" }, "androidNavigationBar": { "barStyle": "light-content",