Releases: Glazzes/react-native-zoom-toolkit
Releases · Glazzes/react-native-zoom-toolkit
Release 4.0.0
✨ New Features
- Add getVisibleRect method to ResumableZoom.
- Add scrollRef property to SnapbackZoom.
- Add gap property to Gallery.
🐛 Bug Fixes
- Fix gesture detection for all components to make them compatible with RN 0.76.
- Fix pinch gesture not terminating when there is less than two fingers on the screen.
- Fix inconsistent vertical pull in Gallery component by @danilvalov.
💥 Breaking Changes
- ResumableZoom, CropZoom and Gallery are not longer wrapped by GestureHandlerRootView, see this issue.
- getAspectRatioSize utility function has been replaced by fitContainer.
- Gallery custom transition data has changed.
🗃️ Miscellaneous
- Update example app to Expo 52.
- Pinch implementation is 100% complete, no workarounds are needed anymore.
Release 3.1.0
✨ New Features
- Add style property to ResumableZoom.
- Add allowOverflow property to Gallery.
🐛 Bug Fixes
- Fix scale animation on reset for CropZoom.
- Fix unit measurement for rotateX and rotateY values in useTransformationState hook.
🗃️ Miscellaneous
- Migrates SnapbackZoom to the new pinch gesture implementation.
- Adds a test suit for gestures (limited to gh test utilities).
Release 3.0.0
✨ New Features
- Add onPress support for SnapbackZoom and ResumableZoom components.
- Add useTransformationState hook.
- Add double tap spport for onGestureEnd callback.
- Add programmatic zoom method to ResumableZoom
- Add scaleMode, onUpdate, onGestureEnd and zoomEnabled properties to Gallery component.
💥 Breaking Changes
- Renames all instances of onGestureActive property to onUpdate.
- Replace all enums for string union types.
- Simplify CropZoom usage.
- Merge Cropzoom's rotate and rotateWithDirection into a single method.
📝 Documentation
- Add "How to use with Skia Components" guide.
- Add "Downscaling Nested Components" guide.
Release 2.1.4
🐛 Bug Fixes
- Fix monorepo support #47
Release 2.1.3
🐛 Bug Fixes
- Fix #44.
- Fix gallery item flickering for very low end Android devices.
Release 2.1.2
🐛 Bug Fixes
- Fix
onVerticalPull
andonSwipe
overlap,onVerticalPull
would block the detection of vertical swipes foronSwipe
property. - Fix
Gallery
vertical scroll related to the issue above, swiping horizontally in a slight diagonal direction would prevent the scroll from snapping to a valid item position.
Release 2.1.1
🐛 Bug Fixes
- Fixes a bug introduced in 2.1.0 where the components could not be panned properly after the first interaction.
Release 2.1.0
✨ New Features
- Add
onVerticalPull
property toGallery
component. - Add
pinchCenteringMode
property toResumableZoom
andGallery
components. - Add
rotateWithDirection
method toCropZoom
component by @iqorlobanov - Add
onZoomBegin
andonZoomEnd
callbacks toGallery
component by @HadesShadows
🐛 Bug Fixes
- Fix a bug in
ResuambleZoom
where settingpanMode
property to anything butPanMode.CLAMP
would prevent the component from properly animating back to its original position.
🏗️ Internal Changes
- Refactor the internals of the common of pan and pinch implementations.
🗃️ Miscellaneous
- Update
Gallery
component example to support images and videos simultaneously. - Add build documentation step to CI pipeline.
Release 2.0.1
Why 2.0.1 and not 2.0.0?
Because I had 1.0.0 on package.json the very first time I published and release-it
tool didn't ask me which version to use, so it just bumped the major.
✨ New Features
- Add
onSwipe
property toResumableZoom
andGallery
components. - Add
overPanning
property toResuambleZoom
component. - Adds basic gesture callbacks to
Gallery
component, including the following:onPanStart
,onPanEnd
,onPinchStart
andonPinchEnd
. - Add support for vertical mode in
Gallery
component. - Add support for custom scroll transitions in
Gallery
component throughcustomTransition
callback property.
🐛 Bug Fixes
ResumableZoom
'sextendGestures
property now supports components bigger thanResuambleZoom
dimensions #20- Fix incorrect tap edge detection in
Gallery
component, it's now bound to the visible area of the current item rather than the whole item itself. - Add missing boolean flag to
Gallery
's reset method.
💥 Breaking Changes
- Renamed all instances of
panWithPinch
property toallowPinchPanning
. - Remove
hitslop
fromResumableZoom
in favor ofextendGestures
property. - Removed
onSwipeRight
andonSwipeLeft
fromResumableZoom
in favor of the newonSwipe
property. - Removed
onHorizontalBoundsExceeded
fromResumableZoom
in favor of the newonOverPanning
property. CropZoom
'smaxScale
property no longer accepts negative values as the condition to infere max scale.Gallery
component's default animation has been removed and the default mode is now a slider, the previous animation can still be used by importing it.
🗃️ Miscelaneous
- Replace
Gallery
's custom pinch implementation for the common one used inResumableZoom
andCropZoom
components. - Fix typos in
SnapbackZoom
documentation #24 by @tannermares
Release 1.2.3
⚡️ Improvements
- Rewrite the size calculation for child component in
CropZoom
, refs #21 - Small size improvement
🗃️ Miscellaneous
- Update example app to Expo SDK 51