Image (React Native)
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
<Image> shfaq foto, nga skedarët e aplikacionit (require("./logo.png")) ose nga interneti ({ uri: "https://…" }). Për fotot nga interneti duhet t'i japësh gjerësinë dhe lartësinë. expo-image është version më i shpejtë me cache.
EnglishEN
<Image> shows pictures, from the app's files (require("./logo.png")) or the internet ({ uri: "https://…" }). For online images you must give a width and height. expo-image is a faster version with caching.
Si ta mendosh
Si korniza e fotos: duhet ta dish madhësinë para se ta varësh.
Lexoje në anglisht
Like a picture frame: you need to know its size before hanging it.
Shembull kodijavascript
<Image source={require("./assets/logo.png")} style={{ width: 64, height: 64 }} />
<Image source={{ uri: "https://fjalori.dev/og-image.png" }} style={{ width: 300, height: 157 }} />