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.
The hidden property can be used to hide the status bar. In our example it is set to false. This is default value. The barStyle can have three values – dark-content, light-content and default.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With