Skip to main content

expo-system-ui

Version: 55.0.6 Interact with system UI elements like the background color of the root view.

Installation

Usage

API Reference

Methods

(color: string) => Promise<void>
Sets the root view background color
This affects the background color visible during screen transitions or when content doesn’t fill the screen.
() => Promise<string | null>
Gets the current root view background color

Examples

Dark Mode Background

Custom Themed Background

Match Navigation Background

Platform Support

Configuration

You can also set the initial background color in app.json:

Best Practices

  1. Match App Theme: Keep system UI colors consistent with your app theme
  2. Handle Dark Mode: Update system UI when color scheme changes
  3. Initial Color: Set via app.json to avoid flash on launch
  4. Smooth Transitions: Update system UI before screen transitions

Resources