oblador / react-native-pinchable

Instagram like pinch to zoom for React Native
MIT License
229 stars 26 forks source link

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 #17

Open nileshvalere opened 1 year ago

nileshvalere commented 1 year ago

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

nileshvalere commented 1 year ago

kindly help me to resolve this issue

Jahagirds commented 1 year ago

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

NoahSimajji commented 7 months ago

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

i am facing this issue too, any solution?

jordiup commented 7 months ago

Also seeing this...

jordiup commented 7 months ago

@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}</>);