StatusBar components mounted at the same time. The props will be merged in the order the StatusBar components were mounted.
Example
Props
Sets the color of the status bar text.
'default'- Default status bar style (dark for iOS, light for Android)'light-content'- Dark background, white texts and icons'dark-content'- Light background, dark texts and icons
If the transition between status bar property changes should be animated. Supported for
backgroundColor, barStyle and hidden.If the status bar is hidden.
Android-Specific Props
The background color of the status bar.Note: This prop has no effect on Android 15+Platform: Android
If the status bar is translucent. When translucent is set to true, the app will draw under the status bar. This is useful when using a semi-transparent status bar color.Note: This prop has no effect on Android 15+Platform: Android
iOS-Specific Props
If the network activity indicator should be visible.Platform: iOSDeprecated: Not supported in iOS 13+
The transition effect when showing and hiding the status bar using the
hidden prop.Platform: iOSStatic Properties
currentHeight
Static Methods
pushStackEntry()
popStackEntry when complete.
popStackEntry()
replaceStackEntry()
setHidden()
pushStackEntry instead for better control.
setBarStyle()
pushStackEntry instead for better control.
setBackgroundColor()
pushStackEntry instead for better control.
setTranslucent()
pushStackEntry instead for better control.
setNetworkActivityIndicatorVisible()
Imperative API
For cases where using a component is not ideal, there are static methods to manipulate the StatusBar display stack.Multiple StatusBar Components
You can have multiple StatusBar components mounted simultaneously. The props will be merged in the order they were mounted, with the most recently mounted component taking precedence:light-content. When it’s dismissed, it will revert to dark-content.
Best Practices
- Use the declarative component API when possible
- Use
pushStackEntryandpopStackEntryfor temporary status bar changes - Avoid using the legacy
set*methods as they don’t update the internal stack - Remember that Android 15+ has restrictions on status bar customization