tests.Screen
The window the app runs in, in points: an iPhone 18 Pro's by default.
Usage
Overlay a now-playing caption
This type is used by Blur
import { Blur, Image, Text, VStack } from 'kuito';
export default function NowPlaying() {
return (
<VStack flex={1}>
<Image
src="https://example.com/cover.jpg"
position="absolute"
top={0}
left={0}
right={0}
bottom={0}
/>
<Blur material="thin" position="absolute" bottom={0} left={0} right={0} padding={16}>
<Text>Now playing</Text>
</Blur>
</VStack>
);
}Type declaration
export interface Screen {
width: number;
height: number;
/** Pixels per point: frames round to them. */
scale: number;
/** What the status bar and the home indicator cover. */
insets: Edges;
}Members 4
| Name | Type | Required | Description |
|---|---|---|---|
width | number | Yes | — |
height | number | Yes | — |
scale | number | Yes | Pixels per point: frames round to them. |
insets | Edges | Yes | What the status bar and the home indicator cover. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.