Releases: Glazzes/react-native-zoom-toolkit
Releases · Glazzes/react-native-zoom-toolkit
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
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.