openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
189 stars 57 forks source link

Cannot pinch in iOS #70

Open cheeka13 opened 10 months ago

cheeka13 commented 10 months ago

I cannot use pinch completely in real iOS devices, but still be able to use double tap to zoom in the same view.

jjstobbe commented 7 months ago

I experienced this issue as well. After a lot of trial and error, I realized that it was because I wasn't using the latest version of the package. Installing the package as recommended by the README will actually install a version that doesn't work correctly.

Specifically I was doing this 👇, which installed a problematic 2.2.0 version. In that version I could not pinch to zoom in iOS, also some of the latest features of this library weren't available.

yarn add @openspacelabs/react-native-zoomable-view

I had to specify the version to pull in the correct package. At the time of writing, the latest version is 2.1.5.

yarn add @openspacelabs/react-native-zoomable-view@2.1.5

I'm unsure where the 2.2.0 version is coming from, but it would be nice if it was deleted (if that's possible), or overwritten with a more correct version.

elliottkember commented 7 months ago

@jjstobbe That's interesting. I wonder whether your yarn had a problem with the cache. I just ran that command locally and got the 2.1.5 version that I was expecting.