tamer-system-ui
Status bar, navigation bar, and theme colors for Lynx. Requires SystemUIModule native module.
Overview
- setStatusBar — Set status bar style (light/dark/auto)
- setNavigationBar — Set nav bar color and style
- setRootBackground — Set root view background
- getThemeColors / getThemeColorsAsync — Get system theme colors
- useThemeColors() — Reactive hook for theme colors; listens to
system-ui:themeChanged
Installation
Run t4l link after installing.
API
useSystemUI()
Returns { setStatusBar, setNavigationBar, setRootBackground, getThemeColors, getThemeColorsAsync }.
setStatusBar(options)
When style is 'auto', derives light/dark from color using WCAG luminance.
setNavigationBar(options)
setRootBackground(options)
ThemeColors
useThemeColors()
Returns ThemeColors | null. Updates on system-ui:themeChanged or refetch.
