- How do I change the background color of my status bar in react-native?
- How to change background color of status bar in react-native iOS?
- How do I change the status bar text color in react-native?
- How do I cover my status bar in react-native?
How do I change the background color of my status bar in react-native?
Add import StatusBar from 'react-native'; to the top of your app. js and then add StatusBar. setBarStyle('light-content', true); as the first line in your render() to change the status bar text/icons to white. The other color options are 'default' and 'dark-content' .
How to change background color of status bar in react-native iOS?
Open the file App.
import GeneralStatusBarColor from './src/components/GeneralStatusBarColor';... barStyle="light-content"/><View style=styles. container><Text style=styles. welcome>Welcome to React Native!
How do I change the status bar text color in react-native?
use style to define the icon and text color and use backgroundColor to define the background. barStyle="dark-content" did not work on Android for me, did work. Note that one says "dark-content", the other one "light", while both of them turn text white.
How do I cover my status bar in react-native?
React Native StatusBar Props
It is used to hide and show the status bar. By default, it is false. If hidden = false it is visible, if hidden = true, it hide the status bar. It sets the background color of the status bar.