From 2f631ef726caaf9c132ffb72074129b43db51722 Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 20 Sep 2017 14:13:35 -0300 Subject: [PATCH] Fix status bar black on black in Android (#922) --- app/components/status_bar/status_bar.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/components/status_bar/status_bar.js b/app/components/status_bar/status_bar.js index 28a979c47..e13f3b7c7 100644 --- a/app/components/status_bar/status_bar.js +++ b/app/components/status_bar/status_bar.js @@ -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'; }