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

Scroll disable request #25

Closed destwofe closed 4 years ago

destwofe commented 4 years ago

Thank it good lib, may is ask more feature scroll disable, currently i have a problem when i use zoomable view with scroll view

<ScrollView>
<ZoomableView>
...
</ZoomableView>
</ScrollView>
SimonErich commented 4 years ago

Please elaborate a little more what the problem is and provide a working example on a repo or expo, so I can see what the problem is!

loikfb commented 4 years ago

@destwofe You can simply toggle scrollEnabled prop of your scroll view in onZoomBefore and onZoomAfter callbacks of ZoomableView.

destwofe commented 4 years ago

https://github.com/DuDigital/react-native-zoomable-view/issues/25#issuecomment-565801110 Thank, i use onZoomAfter to get lastest zoomlevel and disable zoomable when zoomable != 1

aravi365 commented 3 years ago

#25 (comment) Thank, i use onZoomAfter to get lastest zoomlevel and disable zoomable when zoomable != 1

do you have some code to share?