Image

Display an image from a vector or pixel image file. You must import the image into your view before passing it to an <Image> component.

import Logo from './images/logo.svg';

<Image
  source={ Logo }
  title='Gravity Logo'
  alt='Awsome logo'
/>

Props

PropDescriptionRequiredvalue

alt

alt description

required

string

className

custom styles

optional

SCSS or Tailwind style

source

imported image

required

image

title

description

required

string

Last updated