PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

Using photswipe in a reactjs project

Open amirhsh opened this issue 5 years ago • 3 comments

Hi guys.

I'm new in react js and previously I've used Photoswipe in a my projects written in jQuery and I liked it very much. But now I'm switching to react js and I'm a new one in the community. I've searched alot but I didn't find any clue that how can I use this library in a react js project ( I've found this project but I prefer to use core library) CanI use photoswipe in a react project? do you have any example?

thanks in advanced.

amirhsh avatar Dec 22 '20 06:12 amirhsh

https://github.com/dromru/react-photoswipe-gallery

Maybe?

andi34 avatar Dec 29 '20 20:12 andi34

@andi34 thank you for your attention but I prefer to stick with core library. Can I just use core js library in my reactjs project?

amirhsh avatar Jan 02 '21 10:01 amirhsh

It's only a wrapper for react to use the official PhotoSwipe if I see it right, so should be what you're looking for.

<Gallery /> component ships with default PhotoSwipeUI and Layout. Such a setup is suitable for most cases. If you want more control, jump to advanced usage example.

andi34 avatar Jan 02 '21 10:01 andi34