React-native-router-flux: Is there a way to hide status bar?

Created on 19 May 2016  路  7Comments  路  Source: aksonov/react-native-router-flux

Version 3.1.5

Is there a way to hide status bar?
Like this?
initialRoute={{statusBarHidden: true}}
...

question

Most helpful comment

You can do it in the componentWillMount hook of your initial Scene with the static API of StatusBar:

componentWillMount() {
  StatusBar.setHidden(true);
}

All 7 comments

You can do it in the componentWillMount hook of your initial Scene with the static API of StatusBar:

componentWillMount() {
  StatusBar.setHidden(true);
}

I change the status bar by native code.

Does this work for you @zccan ?

@jeroenbourgois yes this helps. thank you @Kerumen

this is not hidden status bar. Only hide text but bar still present

this is not hidden status bar. Only hide text but bar still present

That's not related with rnrf.

Use just react-native to do it. https://facebook.github.io/react-native/docs/statusbar.html.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

booboothefool picture booboothefool  路  3Comments

moaxaca picture moaxaca  路  3Comments

GCour picture GCour  路  3Comments

fgrs picture fgrs  路  3Comments

jgibbons picture jgibbons  路  3Comments