forked from vergnet/application-amicale
Improved statusbar color
This commit is contained in:
parent
6b04447535
commit
b2073747c9
2 changed files with 6 additions and 7 deletions
11
App.js
11
App.js
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
2
app.json
2
app.json
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue