React Native StatusBar
React Native StatusBar is a component which is used to decorate status bar of the app. It is used by importing the StatusBar component from the react-native library. We can use multiple StatusBar at the same time.
React Native StatusBar Props
React Native StatusBar Methods
React Native StatusBar Example 1
Let's create a simple StatusBar example in which we change its background color.
React Native StatusBar Example 2 (hiding status bar, full screen)
In this example, we hide the StatusBar by using its property hidden = true. Hiding the StatusBar makes the display as full-screen.