yarn @likashefqet/react-native-image-zoom 4.3.0
Release 4.3.0

8 months ago

4.3.0 (2024-12-20)

Adds getInfo in the ImageZoomRef and ZoomableRef

/**
  * Retrieves detailed information about the zoomable component, including container dimensions,
  * scaled size, visible area (relative to the scaled component), and transformation values.
  *
  * @returns An object containing:
  * - `container`: The original container's dimensions and center point.
  *   - `width`: The width of the container.
  *   - `height`: The height of the container.
  *   - `center`: The center coordinates of the container.
  * - `scaledSize`: The dimensions of the component after applying the current scale.
  *   - `width`: The scaled width.
  *   - `height`: The scaled height.
  * - `visibleArea`: The visible region of the scaled component.
  *   - `x`: The x-coordinate of the top-left corner of the visible area (relative to the scaled component).
  *   - `y`: The y-coordinate of the top-left corner of the visible area (relative to the scaled component).
  *   - `width`: The width of the visible area (matches container width).
  *   - `height`: The height of the visible area (matches container height).
  * - `transformations`: The current transformation values.
  *   - `translateX`: The horizontal translation value (including focal point adjustment).
  *   - `translateY`: The vertical translation value (including focal point adjustment).
  *   - `scale`: The current scale factor.
  */
getInfo: GetInfoCallback;

Don't miss a new react-native-image-zoom release

NewReleases is sending notifications on new releases.