ImageLoadEvent
The loaded image's size, in points.
Usage
Load an image with request headers.
This type is used by Image
// Load an image with request headers.
import { Image, type RemoteImageSource } from 'kuito';
const avatar = (token: string): RemoteImageSource => ({
uri: 'https://api.example.com/me/avatar',
headers: { Authorization: `Bearer ${token}` },
});
<Image src={avatar('abc123')} width={48} height={48} borderRadius={24} />;Type declaration
export interface ImageLoadEvent extends KuitoEvent<'load'>, ImageSizePayload {}Members 5
| Name | Type | Required | Description |
|---|---|---|---|
type | "load" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
width | number | Yes | — |
height | 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.