ascoders / react-native-image-zoom

react native image pan and zoom
MIT License
639 stars 282 forks source link

Added functionality like google photos zooming and swipe to skip #118

Closed manbir-app-curefit closed 4 years ago

manbir-app-curefit commented 4 years ago
  1. Added swipe gesture on image while pan to zoom is also enabled
  2. Swipe to next and previous image only if image is not zoomed.

i.e., added functionality like google photos zooming and swipe to skip

ani4aniket commented 4 years ago

@manbir-app-curefit A ton of thanks to you for this PR, it saved my lot of effort to implement this feature, I was really struggling for. <3

ArtemKolichenkov commented 4 years ago

First of all - Thanks for the contribution. However, I couldn't make it work and the code is a bit confusing for me to fix. Also this.animatedScale._value always returns 0 if useNativeDriver set to true, so this should be done some other way to be supported on modern RN versions.

I'm now doing the cleanup for this repo (read more in #129). Using React-native-reanimated is on the roadmap (for the future major version) and these features will be improved. I will close this PR for now, but if you want to contribute please come back in a week when the code is a cleaned up and its a bit more clear what and how to go forward with this package. 🙂