This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
v1.1.0
Feature update with migration to typescript.
The API remained the same. No real changes there.
Only one small potential hickup:
- If you are using the
onZoomBefore
oronZoomAfter
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 forpinch2zoom
anddoubleTap
.
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:
- MR-56 - Added a doubleTapZoomToCenter property, that allows zooming to center only on double tap (thanks @kristijantomic for the goundwork here)
- Implemented new methods
events
to manuallyzoom
,shift
from outside of the component.
Bugfixes/Optimizations:
- MR-53 - fixed return type for onZoomBefore, onZoomAfter and onZoomEnd (thank you arelstone )
- MR-57 - Added a missing type definition for onStartShouldSetPanResponder/onMoveShouldSetPanResponder functions (thanks @npoussu )
- MR-61 - Fix for wrong offset values when onDoubleTapAfter is fired (thanks ajayg415
Improvements:
- Migrated the codebase to typescript
- Doc improvements