A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
First really working version after v1.1.0. Improved rollup bundling and deployment.
Smaller bugfixes in deployment after 1.1.0
Smaller bugfixes in deployment after 1.1.0
Feature update with migration to typescript. The API remained the same. No real changes there.
Only one small potential hickup:
onZoomBefore
or onZoomAfter
callback, make sure to check it's still working correctly for you.
It was previously only triggered on pinch to zoom, but not on doubleTap zooming.
This is now corrected and it triggers the same for pinch2zoom
and doubleTap
.Apart from that there should not be any changes necessary for you.
Big news: We finally have events:
We implemented new event
methods to manually zoom
, shift
from outside of the component.
(see https://github.com/DuDigital/react-native-zoomable-view#events )
This way you can zoom, shift and change the way your app interacts with react-native-zoomable-view.
(Think dedicated controlbuttons, zooming after an event, ...)
We have updated the example repo to show how it works and implemented controlbuttons there: https://github.com/DuDigital/react-native-zoomable-view-example
Features:
events
to manually zoom
, shift
from outside of the component.Bugfixes/Optimizations:
Improvements:
New Features: [] Long press handling, original offsetX and offsetY (thanks @atomheartother ) [] Set the initial values when zoom is disabled (thanks @skantus )
Bugfixes: