WindowInsets
How far the system bars, the notch and the home indicator reach into the window.
Usage
Read the current viewport
This type is used by window.insets
import { Text, window } from 'kuito';
<Text>{`${window.size.value.width} × ${window.size.value.height}`}</Text>;
<Text>{window.orientation.value === 'landscape' ? 'Wide' : 'Tall'}</Text>;
window.insets.value; // { top, left, bottom, right }Type declaration
export type WindowInsets = Insets;Members 4
| Name | Type | Required | Description |
|---|---|---|---|
top | number | Yes | — |
left | number | Yes | — |
bottom | number | Yes | — |
right | number | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.