Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React in v5 #1771

Closed
jodik opened this issue Jul 8, 2021 · 8 comments
Closed

React in v5 #1771

jodik opened this issue Jul 8, 2021 · 8 comments

Comments

@jodik
Copy link

jodik commented Jul 8, 2021

Hi,

Is there a way how to run v5 with React?

Thanks.

@jodik
Copy link
Author

jodik commented Jul 8, 2021

Or is there any downside to importing photoswipe directly in "public/index.html"?

@dimsemenov
Copy link
Owner

For now, you may import it like this #1764 (comment)

Likely, there will be a more detailed guide on how to use v5 with React when it'll be released.

@irudoy
Copy link
Contributor

irudoy commented Aug 5, 2021

Updated react-photoswipe-gallery wrapper to support PhotoSwipe v5. You can give it a try using next tag, as described here. Still in the alpha stage and not finished yet, but it works pretty good.

@dimsemenov
Copy link
Owner

@irudoy thank you, it looks great!

@jodik
Copy link
Author

jodik commented Aug 5, 2021

@irudoy Thanks a lot!

@irudoy
Copy link
Contributor

irudoy commented Apr 15, 2022

Just released react-photoswipe-gallery v2 with full PhotoSwipe v5 support 🚀

It has opt-in hash navigation and captions, and it supports all of the new options. The documentation with examples also improved a lot.

@dimsemenov
Copy link
Owner

@irudoy thanks, linked it in docs https://photoswipe.com/react-image-gallery/

@irudoy
Copy link
Contributor

irudoy commented Apr 16, 2022

@dimsemenov thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants