RemoteImageSource
An image an Image fetches by URL, with the request headers it needs.
Usage
Load an image with request headers.
// 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 RemoteImageSource {
uri: string;
headers?: Readonly<Record<string, string>>;
}Members 2
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | — |
headers | Readonly<Record<string, string>> | No | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.