ImageErrorEvent
A KuitoEvent of type error, with the error payload, that Image passes to onError.
Verwendung
Load an image with request headers.
Dieser Typ wird verwendet von 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} />;Typdeklaration
export interface ImageErrorEvent extends KuitoEvent<'error'>, ErrorPayload {}Mitglieder 4
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
type | "error" | Ja | — |
target | unknown | Ja | — |
isTrusted | boolean | Ja | — |
error | string | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.