ImageErrorEvent
A KuitoEvent of type error, with the error payload, that Image passes to onError.
Utilização
Load an image with request headers.
Este tipo é usado por 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} />;Declaração do tipo
export interface ImageErrorEvent extends KuitoEvent<'error'>, ErrorPayload {}Membros 4
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "error" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
error | string | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.