Skip to content

Releases: Glazzes/react-native-zoom-toolkit

Release 1.2.2

29 May 01:58
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix CropZoom crash when using an element whose aspect ratio is one #21

🗃️ Miscellaneous

  • Update CropZoom examples to latest changes.

Release 1.2.1

12 May 21:18
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix Gallery's incorrect gesture detection area dimensions when a child is bigger than its own dimensions.
  • Fix Gallery's memoization for children and pinchable view.
  • Fix error when Gallery's maxScale property is set to an empty array, now defaults to 6.
  • Fix CropZoom's incorrect pinch to zoom calculation when its child is rotated.

📝 Documentation

  • Refactor Gallery's usage example.

🗃️ Miscellaneous

  • Improve Gallery's example in the example app.
  • Remove fixed background color from Gallery's styles.

Release 1.2.0

04 May 17:05
Compare
Choose a tag to compare

Features ✨

  • Add a new Gallery component based on Telegram's one.
  • Add extendGestures property to ResuambleZoom component.

Enhancements 🚩

  • panWithPinch feature will be set to true by default for iOS users if a version of GH's greater than equals 2.16.0 is detected.
  • Clamp the Y axis for ResuambleZoom component when panMode property is set to PanMode.CLAMP
  • Change root view of ResumableZoom and CropZoom components for GH's GestureHandlerRootView component.

Miscellaneous 🗃️

  • Add Reanimated and GH as peer dependencies.
  • Deprecate hitSlop property for ResumableZoom component.

Documentation 📝

  • Update according to the latest features and enhancements.

Release 1.1.0

07 Apr 18:59
Compare
Choose a tag to compare

Features ✨

  • Add assignState method to ResumableZoom component.
  • Add requestState and assignState methods to CropZoom.
  • Add onGestureEnd callback to ResumableZoom and CropZoom components, refs #14

Enhancements 🚩

  • Expand the condition in which swipe gestures for ResuambleZoom's component are detected, as long the edges of the wrapped component and its enclosing container are in contact a swipe gesture can be triggered.

Bug Fixes 🐛

  • Fixes a bug in which minScale property would always be one, even if the user sets it to another value.

Documentation 📝

  • Clarify panWithPinch feature will not trigger any pan gesture related callbacks #14
  • Update according to the latest features and enhancements.

Release 1.0.2

28 Mar 17:58
Compare
Choose a tag to compare

Bug Fixes 🐛

  • Fix jump at the end of pinch gesture #10
  • Makes panWithPinch opt in for iOS users, see #10

Documentation 📝

  • Warns users about new GH version and bumps version to 1.0.2 (04df090)

Release 1.0.2-0

28 Mar 00:35
Compare
Choose a tag to compare
Release 1.0.2-0 Pre-release
Pre-release

What Changed?

  • Fix jump issue at the end of pinch gesture #10
  • Makes panWithPinch an opt in feature of iOS users because of this Gesture Handler issue, this one will be enabled again when this fix makes to the next GH release.

Release 1.0.1

26 Mar 18:10
Compare
Choose a tag to compare
  • Adds JSDoc to zoomable component's types as well as for the utilities.
  • Improves documentation readability for CropZoom and ResumableZoom components.
  • Bumps documentation version to 1.0.1
  • Warns NPM website watchers about its markdown renderer poor capabilities at README.md file.
  • Modifies deploy documentation work-flow from being triggered on push at main branch in favour of a manual execution.

Release 1.0.0

24 Mar 16:57
Compare
Choose a tag to compare

Initial Release 🥳

Comes with three different components for common requirements.

  • SnapbackZoom: A simple component to handle zoomable previews.
  • ResumableZoom: A component for detail and gallery screens, this one has resumable gestures
  • CropZoom: Similar to ResumableZoom, however this one is made for image and video cropping requirements.

Comes with two utilities

  • useImageResolution: A handy component that gets the resolution of a bundle or network image.
  • getAspectRatioSize: A function that gets the width and height based on the aspect ratio.