Skip to content

Commit

Permalink
in the Reactive Native 0.22.2,fix the warning' is deprecated. Use ins…
Browse files Browse the repository at this point in the history
…tead.'
  • Loading branch information
xubing committed Mar 23, 2016
1 parent 086ce33 commit e5b039a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/navbar.js
Expand Up @@ -2,7 +2,7 @@ const navBarFactory = function ({ React, Dimensions }) {
const {
TouchableOpacity,
Text,
StatusBarIOS,
StatusBar,
View,
} = React;
const {
Expand Down Expand Up @@ -106,7 +106,7 @@ const navBarFactory = function ({ React, Dimensions }) {

render() {
const _statusBarStyle = this.props.statusBarHidden ? { height: 0 } : { height: statusBarHeight };
this.props.statusBarHidden ? StatusBarIOS.setHidden(true) : StatusBarIOS.setHidden(false);
this.props.statusBarHidden ? StatusBar.setHidden(true) : StatusBar.setHidden(false);

return (
<View style = { styles.navBar } >
Expand Down

0 comments on commit e5b039a

Please sign in to comment.