Skip to content

Releases: Glazzes/react-native-zoom-toolkit

Release 4.0.0

03 Dec 18:41
Compare
Choose a tag to compare

✨ 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

02 Oct 20:36
Compare
Choose a tag to compare

✨ 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

08 Sep 16:49
Compare
Choose a tag to compare

✨ 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

15 Aug 15:44
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix monorepo support #47

Release 2.1.3

12 Aug 20:25
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix #44.
  • Fix gallery item flickering for very low end Android devices.

Release 2.1.2

09 Aug 19:30
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix onVerticalPull and onSwipe overlap, onVerticalPull would block the detection of vertical swipes for onSwipe 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

02 Aug 22:31
Compare
Choose a tag to compare

🐛 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

02 Aug 20:55
Compare
Choose a tag to compare

✨ New Features

  • Add onVerticalPull property to Gallery component.
  • Add pinchCenteringMode property to ResumableZoom and Gallery components.
  • Add rotateWithDirection method to CropZoom component by @iqorlobanov
  • Add onZoomBegin and onZoomEnd callbacks to Gallery component by @HadesShadows

🐛 Bug Fixes

  • Fix a bug in ResuambleZoom where setting panMode property to anything but PanMode.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

22 Jun 20:53
Compare
Choose a tag to compare

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 to ResumableZoom and Gallery components.
  • Add overPanning property to ResuambleZoom component.
  • Adds basic gesture callbacks to Gallery component, including the following: onPanStart, onPanEnd, onPinchStart and onPinchEnd.
  • Add support for vertical mode in Gallery component.
  • Add support for custom scroll transitions in Gallery component through customTransition callback property.

🐛 Bug Fixes

  • ResumableZoom's extendGestures property now supports components bigger than ResuambleZoom 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 to allowPinchPanning.
  • Remove hitslop from ResumableZoom in favor of extendGestures property.
  • Removed onSwipeRight and onSwipeLeft from ResumableZoom in favor of the new onSwipe property.
  • Removed onHorizontalBoundsExceeded from ResumableZoom in favor of the new onOverPanning property.
  • CropZoom's maxScale 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 in ResumableZoom and CropZoom components.
  • Fix typos in SnapbackZoom documentation #24 by @tannermares

Release 1.2.3

06 Jun 22:15
Compare
Choose a tag to compare

⚡️ Improvements

  • Rewrite the size calculation for child component in CropZoom, refs #21
  • Small size improvement

🗃️ Miscellaneous

  • Update example app to Expo SDK 51