yifaneye / react-gallery-carousel

Carousel component 🎠🎠🎠 supporting touch, mouse, keyboard, thumbnails, fullscreen, lazy loading, SSR and customisations. 👉 Live editor: https://yifanai.com/rgcd1
https://yifanai.com/rgc
MIT License
215 stars 30 forks source link

Cant make this module work #73

Open damdafayton opened 2 years ago

damdafayton commented 2 years ago

Hi, the live example looks really nice but

I don't know whats wrong but its pity that such nice looking library can not be implemented smoothly.

yifaneye commented 2 years ago

Hi @damdafayton ! Thank you for raising this issue up.

I can't reproduce your bugs. Can you give more information?

yifaneye commented 2 years ago

Hi @damdafayton !

Regarding

the example in clone from repo doesn't work with npm start

It should be fixed in Issue #72

Regarding

it doesn't render correctly when I install the library into my own project.

Would you like to give me some more information? I am happy to help you. 😃

hamez0r commented 1 year ago

~~Hi! I'm trying to make it work here, but no luck :( https://codesandbox.io/s/rough-silence-ggzckp?file=/src/App.js~~

I wasn't importing the CSS. @damdafayton maybe that was your issue too?

yifaneye commented 1 year ago

Yes. Currently, we need to import the CSS from the package by adding import 'react-gallery-carousel/dist/index.css';. See https://github.com/yifaneye/react-gallery-carousel#usage Adding the line at https://codesandbox.io/s/runtime-rgb-pk9mqj?file=/src/App.js makes the carousel work.