booyeu / react-native-reanimated-viewer

A high performance image viewer in react-native created from react-native-reanimated.
130 stars 12 forks source link

[Issue] - `shouldCloseViewer` and zoomed image compatibility issue #23

Open crank-chips opened 1 year ago

crank-chips commented 1 year ago

Platforms: iOS, Andorid

With using shouldCloseViewer={({gesture}) => gesture === GestureEnum.Tap} to disable closing viewer on a single tap. When the image is zoomed in and a single click/tap on the image it zoomed out, shifts off-center, and the black background becomes half transparent

https://github.com/BooYeu/react-native-reanimated-viewer/assets/17419029/8d02f7ee-9e6c-4949-9459-82f03c1a84b2

llr101 commented 1 year ago

Could you try version 1.3.1 to see if the problem can be reproduced?

crank-chips commented 1 year ago

Yes, it's still reproducible on 1.3.1 on both platforms