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 ImageErrorEvent extends KuitoEvent<'error'>, ErrorPayload {}

Members 4

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