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
241 stars 112 forks source link

How to set zoom level with button plus/subtract ??? #59

Closed trungdh-pnc closed 3 years ago

trungdh-pnc commented 3 years ago

help me please 🥺

ajayg415 commented 3 years ago

It involves 2 things.

  1. You have to trigger touch event when user clicks Plus or Minus buttons.
  2. Seems the current logic doesn't permit Minus operation, you have to add this new functionality in ReactNativeZoomableView.js
SimonErich commented 3 years ago

thank you @ajayg415 for helping out! :)

Fortuntately we have a new release that introduces events exactly for that:

Here are the details: https://github.com/DuDigital/react-native-zoomable-view/releases/tag/v1.1.0

Please make sure to install the latest version. (1.1.3 or up for a working version) You can also check out the example repo for an examples: https://github.com/DuDigital/react-native-zoomable-view