- 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
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
| Name | Type | Default | Details |
|---|---|---|---|
| options | false | SystemBarsOptions | Required | Set the system bar appearance or pass false to restore the surrounding theme settings. |
| navigation | SystemBarsNavigation | Optional | Limit the override to the focused screen using a React Navigation-compatible focus source. |