Image
The Image component allows one to display images.
import { Image } from "cherag-ui"'
Usage
absolute import
<Image
w={120}
h={120}
size={10}
source={require("../../assets/cat.jpg")}
alt="Image not found"
/>
url import
<Image
w={80}
h={80}
size={90}
source={{
uri: "https://avatars.githubusercontent.com/u/1342004?s=64&v=4",
}}
alt="Image not found"
/>
Props
Image propertics
size
number
Image ratio size.
source
StyleProp<ImageSource>
Style of Image.
alt
string
Alternate of image sourec when image url is broken.