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 inapp.json:
Best Practices
- Match App Theme: Keep system UI colors consistent with your app theme
- Handle Dark Mode: Update system UI when color scheme changes
- Initial Color: Set via
app.jsonto avoid flash on launch - Smooth Transitions: Update system UI before screen transitions