npx gluestack-ui add imageimport { Image } from '@/components/ui/image';
export default () => <Image source={source} />;
| Platform | Output |
|---|---|
Web | <img /> |
Native | <Image /> |
| Prop | Type | Default | Description |
|---|---|---|---|
source | ImageSourcePropType | - | The source of the image |
alt | string | - | The alt text for the image |
size | 2xs | xs | sm | md | lg | xl | 2xl | full | md | The size of the image |
import Image from '@unitools/image';