image
Works with the images an Image shows, ahead of showing them.
Usage
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 loadsExports 3
Methods, constants and types exposed by this native namespace.
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.Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.