DuDigital / 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
243 stars 113 forks source link

You Can Just Use ScrollView Instead (not an issue) #43

Closed nescroft closed 4 years ago

nescroft commented 4 years ago

I found that all I needed for zoom was this. I'm not sure how to do double click to zoom but I don't really need it for my app. I just put this here for other people who might be having problems with react-native-zoomable-view.

<ScrollView bounces={false} bouncesZoom={false} maximumZoomScale={2} minimumZoomScale={1} showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false}> /*your content*/ </ScrollView>

nescroft commented 4 years ago

``

cuddeford commented 4 years ago

This has blown my mind

webtaculars commented 3 years ago

Just to put it, your solution only works for iOS. So if anyone isn't building for android, then this is great

nescroft commented 3 years ago

Just to put it, your solution only works for iOS. So if anyone isn't building for android, then this is great

yeah i realized that eventually.. if anyone has an easy solution like this for android i'd be interested to see it. it works great on ios.