Skip to content
  • Android
  • iOS

useNSystemBars

Set the status bar appearance on iOS and Android and the navigation bar appearance on Android for the focused screen.

Engine API useNSystemBarsnayan-ui/components

Live examples

Run this on iOS or Android to see the system bar change. Call the hook from the screen outside the NPage rendering surface.

Example.tsx
Status bar style: light

Parameters

useNSystemBars parameters
NameTypeDefaultDetails
optionsfalse | SystemBarsOptionsRequiredSet the system bar appearance or pass false to restore the surrounding theme settings.
navigationSystemBarsNavigationOptionalLimit the override to the focused screen using a React Navigation-compatible focus source.

Tags