react-image-gallery icon indicating copy to clipboard operation
react-image-gallery copied to clipboard

Import images from source

Open KevinMongiello opened this issue 8 years ago • 0 comments

There seems to be no documentation on how to use images imported via webpack from source files. I've looked through the closed issues and fiddled around to no avail.

I imagine it should be something like this:

import img from "../images/img.jpg";

<ImageGallery 
  images={[
    { original: img }
  ]}
/>

EDIT User error: I was using wrong prop. it should be items={[...]}

KevinMongiello avatar Oct 08 '18 20:10 KevinMongiello