oblador / react-native-pinchable

Instagram like pinch to zoom for React Native
MIT License
224 stars 23 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 11 months ago

nileshvalere commented 11 months ago

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

nileshvalere commented 11 months ago

kindly help me to resolve this issue

Jahagirds commented 11 months 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 5 months ago

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

i am facing this issue too, any solution?

jordiup commented 5 months ago

Also seeing this...

jordiup commented 5 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}</>);