react-native-pinchable icon indicating copy to clipboard operation
react-native-pinchable copied to clipboard

getting issue in iOS when I zoom the image or video some time image stuck at the top of the app and can scroll the list also the zoomed view can not remove without killing the app can you provide the patch file as I got for the android in the issue https://github.com/oblador/react-native-pinchable/issues/5

Open nileshvalere opened this issue 1 year ago • 6 comments

nileshvalere avatar Sep 22 '23 11:09 nileshvalere

https://github.com/oblador/react-native-pinchable/assets/113684446/18b410b7-1a9c-46a6-84b6-574b8266e426

nileshvalere avatar Sep 22 '23 12:09 nileshvalere

kindly help me to resolve this issue

nileshvalere avatar Sep 22 '23 12:09 nileshvalere

I'm also facing this issue for both platforms, Please help me to resolve this issue; "react-native-pinchable": "^0.2.1",

Jahagirds avatar Oct 05 '23 09:10 Jahagirds

original-7CBEEDE0-45EA-47B7-882D-D02A2D2F00B7.mp4

i am facing this issue too, any solution?

NoahSimajji avatar Apr 08 '24 03:04 NoahSimajji

Also seeing this...

jordiup avatar Apr 17 '24 07:04 jordiup

@Jahagirds @NoahSimajji I found a solution.

The bug only presents itself when a Page/Route Navigation occurs (while the image is zoomed).

What I did was remove the <Pinchable/> component from it's nested link.

For convenience I made a toggle wrapper, so it can be programatically toggled depending on its parent context, see here 😄

const ToggleablePinch = ({
	enabled,
	children,
}: {
	enabled: boolean;
	children: React.ReactNode;
}) => (enabled ? <Pinchable>{children}</Pinchable> : <>{children}</>);

jordiup avatar Apr 17 '24 07:04 jordiup