image
Works with the images an Image shows, ahead of showing them.
Verwendung
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 loadsExporte 3
Methoden, Konstanten und Typen, die dieser native Namespace bereitstellt.
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.Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.