react-lightbox-component
react-lightbox-component copied to clipboard
Styles are not imported
Once implemented and clicking on the image, the modal opens up but all the styles are missing, therefore the component is unusable
Yes, I have the same issue with importing Styles-
When I click on the image, it opens at the bottom of the page - not the lightbox and missing the style.
Well, since they support and docs are great (irony), I managed to manually import their css from node modules folder to my app. This is working.
Import this wherever you want:
import 'react-lightbox-component/build/css/index.css';