Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Component to control the app’s status bar. The status bar is the zone, typically at the top of the screen, that displays the current time, Wi-Fi and cellular network information, battery level and/or other status icons.

Usage with Navigator

It is possible to have multiple StatusBar components mounted at the same time. The props will be merged in the order the StatusBar components were mounted.

Imperative API

For cases where using a component is not ideal, there is also an imperative API exposed as static functions on the component. It is however not recommended to use the static API and the component for the same prop because any value set by the static API will get overridden by the one set by the component in the next render.

Reference

Constants

currentHeight Android

The height of the status bar, which includes the notch height, if present.

Props

animated Android iOS

If the transition between status bar property changes should be animated. Supported for backgroundColor, barStyle and hidden properties.

backgroundColor Android

The background color of the status bar.

barStyle Android iOS

Sets the color of the status bar text. On Android, this will only have an impact on API versions 23 and above.

hidden Android iOS

If the status bar is hidden.

networkActivityIndicatorVisible iOS

If the network activity indicator should be visible.

showHideTransition iOS

The transition effect when showing and hiding the status bar using the hidden prop.

translucent 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.

Methods

popStackEntry() Android iOS

Get and remove the last StatusBar entry from the stack. Parameters:

pushStackEntry() Android iOS

Push a StatusBar entry onto the stack. The return value should be passed to popStackEntry when complete. Parameters:

replaceStackEntry() Android iOS

Replace an existing StatusBar stack entry with new props. Parameters:

setBackgroundColor() Android

Set the background color for the status bar. Parameters:

setBarStyle() Android iOS

Set the status bar style. Parameters:

setHidden() Android iOS

Show or hide the status bar. Parameters:

setNetworkActivityIndicatorVisible() iOS

Control the visibility of the network activity indicator. Parameters:

setTranslucent() Android

Control the translucency of the status bar. Parameters:

Type Definitions

StatusBarAnimation Android iOS

Status bar animation type for transitions on the iOS. Constants:

StatusBarStyle Android iOS

Status bar style type. Constants:
Last modified on May 13, 2026