Fix status bar for Android in server url screen (#1210)

This commit is contained in:
enahum 2017-11-27 17:59:52 -03:00 committed by Harrison Healey
parent 1a5b6886ef
commit e19c76cc4c

View file

@ -228,6 +228,10 @@ class SelectServer extends PureComponent {
}
const error = pingRequest.error || configRequest.error || licenseRequest.error;
let statusStyle = 'dark-content';
if (Platform.OS === 'android') {
statusStyle = 'light-content';
}
return (
<KeyboardAvoidingView
@ -235,7 +239,7 @@ class SelectServer extends PureComponent {
style={{flex: 1}}
keyboardVerticalOffset={0}
>
<StatusBar barStyle='dark-content'/>
<StatusBar barStyle={statusStyle}/>
<TouchableWithoutFeedback onPress={this.blur}>
<View style={[GlobalStyles.container, GlobalStyles.signupContainer]}>
<Image