DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.22k stars 1.51k forks source link

Support pinch to zoom, panning of images #60

Closed srameshr closed 6 years ago

srameshr commented 7 years ago

If you are looking for this features, please emoji vote this comment instead of +1

tikkichan4 commented 7 years ago

+1, Seeking for this feature too !

pewh commented 7 years ago

+1

Najibsaurus commented 7 years ago

+1

dotansimha commented 7 years ago

As a workaround, you can use react-native-image-pan-zoom package. it supports a third-party Image components.

hoorsa commented 6 years ago

+1

habibi-dev commented 6 years ago

+1

DylanVann commented 6 years ago

I think it's out of the scope of this package.

https://www.npmjs.com/package/react-native-image-pan-zoom looks pretty great.

bobber205 commented 5 years ago

Would love this feature built in natively.

The pan zoom library at least for me so far in "compatible" with fast image but it's a bit hard to manage the gestures for both using a carousel (like react-native-swiper) and fast image.

OmarBasem commented 4 years ago

Would be great to have zooming natively. Zooming on JS side is extremely slow, especially with long list of images.

salhotra commented 4 years ago

One solution to this is to have a zoomable parent View. Zooming and caching both will work. This can be implemented using react-native-gesture-handler or a couple of well-maintained packages are also available.

But, considering a very common scenario where multiple images are shown inside a Modal > ViewPager (swipeable), zooming will work just fine here. But if we want to drag around the zoomed image, pan handler of the swiper will take charge. So in this very common scenario, native zooming will do the job. This package https://github.com/alwx/react-native-photo-view does exactly this, but there is no caching available there :(

ghost commented 3 years ago

Try this guys https://github.com/oblador/react-native-pinchable, works brilliantly for zooming like instagram