You can use React Native Status Bar(detailed description here). All you need to do is wrapping navigator with a view and adding a StatusBar component above it. Don't forget to import StatusBar from 'react-native' package.
One thing I've noticed is that you should style the parent View with flex:1, without it you'll just see a white blank screen. It's not mentioned in RN Documents though.
You can use React Native Status Bar(detailed description here). All you need to do is wrapping navigator with a view and adding a StatusBar component above it. Don't forget to import StatusBar from 'react-native' package.
One thing I've noticed is that you should style the parent View with flex:1, without it you'll just see a white blank screen. It's not mentioned in RN Documents though.
Just add the following code to your App.js file inside your class component.
And add this to your import statements.
If you guys are using expo then just add this in the app.json
Refer: https://docs.expo.io/versions/latest/guides/configuring-statusbar/
I've made an npm package to control the StatusBar in android
https://www.npmjs.com/package/react-native-android-statusbar
The color changes do not reflect for versions before 21
You can use
react-native
in-buildStatusBar
functionrefferance : https://facebook.github.io/react-native/docs/statusbar
Add this code on your header component