dohooo / react-native-reanimated-carousel

🎠 React Native swiper/carousel component, fully implemented using reanimated v2, support to iOS/Android/Web. (Swiper/Carousel)
https://react-native-reanimated-carousel.vercel.app
MIT License
2.86k stars 329 forks source link

[Feature Request] Allow the user to zoom-in the photos #719

Open BrodaNoel opened 1 week ago

BrodaNoel commented 1 week ago

Is your feature request related to a problem? Please describe. I have been trying to add zoom-in in the carousel, using some other libraries, and it's an extreme pain, because you have to deal with a lot of problems related to the gestures.

For example, I have a Modal, which contains a ScrollView, which inside it I have the Carousel. If I add the zoom feature inside that, something is always broken.

Considering that this library has the whole gesture knowledge, it may be more simple to implement this feature here, and adding some prop like allowZoom, so we allow the user to zoom in the elements inside.

To sum up, the idea is to get something similar as it's implemented on Instagram, where you can move the carousel items, but also you can zoom in the photos.

Describe the solution you'd like The instagram carousel behaviour.

Describe alternatives you've considered I had a LOOOONG talk with ChatGPT, trying different alternatives, and most of them are too complex or too buggy

Additional context No addition context.

ClementBenezech commented 6 days ago

Same here, I'm trying to replace react-native-image-zoom-viewer which allowed me to do just this with RNRC, and this is what I'm missing.

Still a very nice Library, but it would make it even better :)