Types
The types of system ui.
SafeAreaEdge
An edge of the screen: 'top', 'right', 'bottom' or 'left'. The edges are physical: in a right-to-left layout 'left' stays the left side. A value outside these four is ignored.
type SafeAreaEdge = 'top' | 'right' | 'bottom' | 'left'
LayoutOrientation
An orientation a screen allows. 'all' and 'sensor' allow all four sides; 'portrait' the upright portrait; 'upsideDown' the upside-down portrait; 'landscape' and 'sensorLandscape' both landscape sides; 'sensorPortrait' both portrait sides; 'default' the orientations the app declares (Info.plist on iOS, the manifest on Android). The screen allows the union of the sides of all its values. An unknown value is dropped.
type LayoutOrientation =
| 'all'
| 'default'
| 'portrait'
| 'landscape'
| 'upsideDown'
| 'sensor'
| 'sensorLandscape'
| 'sensorPortrait'
NavigationDirection
The direction of the app: right to left, left to right, or as the language of the app.
type NavigationDirection = 'ltr' | 'rtl' | 'locale'
OptionsScrollEdge
(iOS 26+) The scroll edge effect of one edge of the scroll views of a screen.
interface OptionsScrollEdge
| Member | Type | Description |
|---|---|---|
| hidden | boolean | Whether the effect of this edge is hidden. Without it, the value of |
| style | ScrollEdgeEffectStyle | The style of this edge: |
EdgeInsets
How much of a screen's content the bars and the system cover on each side, past the screen's own padding: points on iOS, dp on Android.
interface EdgeInsets
| Member | Type | Description |
|---|---|---|
| topRequired | number | |
| rightRequired | number | |
| bottomRequired | number | |
| leftRequired | number |
KeyCommandPressedEvent
type KeyCommandPressedEvent = NavigationEvents['keyCommandPressed']
| Member | Type | Description |
|---|---|---|
| keyCommandIdRequired | string | The id of the key command, as set in the |
| screenRequired | ScreenRef |
ReservedRegion
A part of a screen in its coordinates: points on iOS, dp on Android.
interface ReservedRegion
| Member | Type | Description |
|---|---|---|
| xRequired | number | |
| yRequired | number | |
| widthRequired | number | |
| heightRequired | number |
ReservedRegions
The parts of a screen the hardware takes.
interface ReservedRegions
| Member | Type | Description |
|---|---|---|
| divisionRequired | ReservedRegion[] | Where the screen divides: the fold of a partly folded device. Keep controls and text off it. |
| occlusionRequired | ReservedRegion[] | Where hardware covers the screen: a camera, a hinge that hides what is under it. |
Hinge
The device's hinge.
interface Hinge
| Member | Type | Description |
|---|---|---|
| stateRequired | 'closed' | 'partiallyOpen' | 'fullyOpen' | 'unknown' |
|
| angleRequired | number | null | Degrees: 0 closed, 180 open flat, beyond 180 on Android devices that fold back. Null where the platform gives no angle: on Android without a hinge sensor, and on iOS while the state is unknown. |