can-it-be-done-in-react-native
can-it-be-done-in-react-native copied to clipboard
Bonus video request (doubletap to zoom imageViewer)
Hey William! I'm a big fan of your show and I've learned a lot related to reanimated and react-native-gesture-handler.
Recently, I've unsuccessfully tried to add double tap to zoom in / out support to the reanimated example image viewer.
It might make an interesting bonus episode since it would involve extending a complex component that already supports sophisticated gesture interactions. Maybe you could give some tips for managing complexity for components that support many interactions.
Thanks for the consideration!
This is definitely on my list of examples I would like to build. I've already spent quite some time on it and I know that this is quite some work, so an episode related to that topic will come eventually but it's gonna take some time.
Thank you for your support and patience 🙌🏻
I would also love to see this video. I have spent some time trying to add this feature to the ImageViewer example as well but have also been unsuccessful. Thank you for your contributions @wcandillon!
@wcandillon is this still on your radar?
Here is the code which performs zoom into the point, feel free to convert it to Reanimated 1 https://github.com/terrysahaidak/react-native-gallery-toolkit/blob/master/src/ImageTransformer.tsx#L502