image
Works with the images an Image shows, ahead of showing them.
Utilisation
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
Méthodes, constantes et types exposés par cet espace de noms natif.
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.Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.