ldn0x7dc / react-native-view-transformer

A pure JavaScript RN component that makes ANY views transformable using gestures like pinch, double tap or pull.
135 stars 143 forks source link

[ Feature Request ] - Double-tap zoom-in / zoom-out #6

Open esutton opened 8 years ago

esutton commented 8 years ago

Similar to iOS Photos, it would be useful to have a feature to zoom-in / zoom-out on the focus of a double-tap location.

A property to not bounce back out, after a pinch-zoom occurs could be useful too.

Thank you for sharing your work! Nice job!

ikalafat commented 8 years ago

@esutton,

You can use https://github.com/ldn0x7dc/react-native-transformable-image (same author) which has double-tap functionality (and uses react-native-view-transformer in background), resulting in very similar functionality to ios Photos.

esutton commented 8 years ago

@ikalafat Perfect! Thank you very much for your time and suggesting this component..

ikalafat commented 8 years ago

No problem! I'm glad that I could help.

esutton commented 7 years ago

https://github.com/ldn0x7dc/react-native-transformable-image as the name suggests, supports images.

It does not work on non-images such as a VictoryChart.

https://github.com/FormidableLabs/victory-native