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
Sets the root view background color
This affects the background color visible during screen transitions or when content doesn’t fill the screen.
Gets the current root view background color
Examples
Dark Mode Background
Custom Themed Background
Match Navigation Background
Platform Support
| Platform | Supported | Notes |
|---|---|---|
| iOS | ✅ | Root view background |
| Android | ✅ | Root view background |
| Web | ✅ | Document body background |
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