image
Works with the images an Image shows, ahead of showing them.
Utilização
Inspect and cache an image.
// Inspect and cache an image.
import { image } from 'kuito';
const { width, height } = await image.prefetch('https://example.com/cover.jpg');
const aspectRatio = width / height; // size the Image before it loadsExportações 3
Métodos, constantes e tipos expostos por este namespace nativo.
function
prefetchLoads and decodes the image a URL or { uri, headers } names, ahead of an
Image showing it, and resolves its size in pixels.typeImageSizeIn pixels, as an Image's onLoad reports it.typePrefetchOptionsPicks the caches image.prefetch() fills, so the Image that later shows the picture finds it there.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.