Usage

Load an image with request headers.

This type is used by Image

tsx
// 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

ts
export interface ImageLoadEvent extends KuitoEvent<'load'>, ImageSizePayload {}

Members 5

NameTypeRequiredDescription
type"load"Yes—
targetunknownYes—
isTrustedbooleanYes—
widthnumberYes—
heightnumberYes—
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.