config.Orientation
The orientation setting: default follows the device, portrait or landscape locks the app.
Verwendung
Read the current viewport
Dieser Typ wird verwendet von window.orientation
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 }Typdeklaration
export type Orientation = 'default' | 'portrait' | 'landscape';Typ
"portrait" | "landscape" | "default"Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.