Open nileshvalere opened 1 year ago
kindly help me to resolve this issue
I'm also facing this issue for both platforms, Please help me to resolve this issue; "react-native-pinchable": "^0.2.1",
original-7CBEEDE0-45EA-47B7-882D-D02A2D2F00B7.mp4
i am facing this issue too, any solution?
Also seeing this...
@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}</>);
https://github.com/oblador/react-native-pinchable/assets/113684446/18b410b7-1a9c-46a6-84b6-574b8266e426