react-image-gallery
react-image-gallery copied to clipboard
Import images from source
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={[...]}