Fix status bar black on black in Android (#922)
This commit is contained in:
parent
8694f59e80
commit
2f631ef726
1 changed files with 5 additions and 2 deletions
|
|
@ -3,7 +3,10 @@
|
|||
|
||||
import React, {PureComponent} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {StatusBar as NativeStatusBar} from 'react-native';
|
||||
import {
|
||||
Platform,
|
||||
StatusBar as NativeStatusBar
|
||||
} from 'react-native';
|
||||
import tinyColor from 'tinycolor2';
|
||||
|
||||
export default class StatusBar extends PureComponent {
|
||||
|
|
@ -15,7 +18,7 @@ export default class StatusBar extends PureComponent {
|
|||
const {theme} = this.props;
|
||||
const headerColor = tinyColor(theme.sidebarHeaderBg);
|
||||
let barStyle = 'light-content';
|
||||
if (headerColor.isLight()) {
|
||||
if (headerColor.isLight() && Platform.OS === 'ios') {
|
||||
barStyle = 'dark-content';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue