Image

You must import the image into your view before passing it to an <Image> component.

import ImgLogo from './images/gravity-logo.svg';

Props

  • src - source component (as above)
  • alt - alt tag
  • title - image title
  • className - apply a custom class
<Image
  src={ ImgLogo }
  title='Gravity Logo'
  alt='Awsome logo'
  className='logo'
/>