Skip to content

Commit

Permalink
Fix old imperative StatusBarIOS usage
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic committed Aug 1, 2016
1 parent 9175f31 commit 5cee935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/login/LoginScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Dimensions = require('Dimensions');
var F8Colors = require('F8Colors');
var Image = require('Image');
var React = require('React');
var StatusBarIOS = require('StatusBarIOS');
var StatusBar = require('StatusBar');
var StyleSheet = require('StyleSheet');
var View = require('View');
var { Text } = require('F8Text');
Expand All @@ -44,7 +44,6 @@ class LoginScreen extends React.Component {
};

componentDidMount() {
StatusBarIOS && StatusBarIOS.setStyle('default');
Animated.timing(this.state.anim, {toValue: 3000, duration: 3000}).start();
}

Expand All @@ -53,6 +52,7 @@ class LoginScreen extends React.Component {
<Image
style={styles.container}
source={require('./img/login-background.png')}>
<StatusBar barStyle="default" />
<TouchableOpacity
accessibilityLabel="Skip login"
accessibilityTraits="button"
Expand Down
5 changes: 0 additions & 5 deletions js/tabs/F8TabsView.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
'use strict';

var F8Colors = require('F8Colors');
var StatusBarIOS = require('StatusBarIOS');
var F8InfoView = require('F8InfoView');
var F8MapView = require('F8MapView');
var F8NotificationsView = require('F8NotificationsView');
Expand All @@ -51,10 +50,6 @@ class F8TabsView extends React.Component {
navigator: Navigator;
};

componentDidMount() {
StatusBarIOS && StatusBarIOS.setStyle('light-content');
}

onTabSelect(tab: Tab) {
if (this.props.tab !== tab) {
this.props.onTabSelect(tab);
Expand Down

0 comments on commit 5cee935

Please sign in to comment.