Skip to content

Releases: Glazzes/react-native-zoom-toolkit

Release 5.0.0

27 May 21:53
Compare
Choose a tag to compare

✨ New Features

  • Add longPressDuration and onLongPress properties to SnapbackZoom, ResumableZoom and Gallery #93

🐛 Bug Fixes

  • Fix freeze on Gallery when swiping too fast

💥 Breaking Changes

  • Refactored API
    • Rename all instances of requestState to getState
    • Rename all instances of assignState to setTransformState
    • Rename all instances of pinchCenteringMode to pinchMode
    • Extend CommonZoomState and CropZoomState objects by adding containerSize and maxScale properties.
    • Refactor SnapbackZoomState object.
  • ResumableZoom's zoom method now accepts the final scale instead of a multiplier.

Release 4.0.2

24 Mar 00:14
Compare
Choose a tag to compare

🐛 Bug Fixes

🎨 Improvements

  • Extend CropZoom's gesture detection area, equivalent to ResumableZoom's extendGestures property
  • Clamp ResumableZoom's zoom method parameters

🗃️ Miscellaneous

  • Refactor CropZoom's examples
  • Fix documentation typos
  • Update example app dependencies
  • Add 30 days more to issues before becoming stale

Release 4.0.1

06 Jan 16:14
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix blurry image on load for CropZoom #79
  • Fix wrong calculations for ResumableZoom's zoom method.

🗃️ Miscellaneous

  • Fix missing and wrong imports for Skia guide.

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.