Releases: Glazzes/react-native-zoom-toolkit
Releases · Glazzes/react-native-zoom-toolkit
Release 1.2.2
🐛 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
🐛 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
'smaxScale
property is set to an empty array, now defaults to6
. - 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
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 equals2.16.0
is detected. - Clamp the Y axis for ResuambleZoom component when
panMode
property is set toPanMode.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
Features ✨
- Add
assignState
method toResumableZoom
component. - Add
requestState
andassignState
methods toCropZoom
. - Add
onGestureEnd
callback toResumableZoom
andCropZoom
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
Release 1.0.2-0
Release 1.0.1
- 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
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.