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

maphongba008 picture maphongba008  路  3Comments

sarovin picture sarovin  路  3Comments

kirankalyan5 picture kirankalyan5  路  3Comments

tonypeng picture tonypeng  路  3Comments

sreejithr picture sreejithr  路  3Comments