Releases: DuDigital/react-native-zoomable-view
v1.1.3
v1.1.1
Smaller bugfixes in deployment after 1.1.0
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
v1.1.2
Smaller bugfixes in deployment after 1.1.0
v1.0.16
- Add captureEvent to ReactNativeZoomableViewProps (thanks @jschao )
- Fix not triggering onDoubleTapBefore (thanks @milansusnjar )
- Set lastZoom to initialZoom (thanks @dudyn5ky1 )
v1.0.15
- Added typescript type definitions (thanks to @adamaveray )
- Added the captureEvent property to fix react-native modal problems
v1.0.14
- Make completely compatible with react-native 0.57
v1.0.13
New Features:
[] Long press handling, original offsetX and offsetY (thanks @atomheartother )
[] Set the initial values when zoom is disabled (thanks @skantus )
v1.0.12
Bugfixes:
- Fixes panning issue, when zoomed in
v1.0.9
added expo snack and example repo