Hiding the status bar with React Native

Rheisen picture Rheisen · Mar 23, 2016 · Viewed 62.5k times · Source

How do you hide the status bar for iOS or Android when developing with React Native? I've imported StatusBar, but I believe there is also StatusBarIOS and a StatusBar for Android.

Answer

Rheisen picture Rheisen · Mar 23, 2016

Figured out how to hide the status bar. First of all, StatusBarIOS is deprecated so you need to import StatusBar and then simply include this code snippet at the top of your render:

<StatusBar hidden />

React Native Docs on StatusBar