🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-zoom-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-zoom-toolkit

Smoothly zoom any image, video or component you want in a performant way!

1.0.0
Source
npm
Version published
Weekly downloads
5.2K
-3.2%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Zoom Toolkit

A set of utilities and components for common pinch to zoom feature requirements

 SnapbackZoom ResumableZoom     CropZoom      

Motivation

Pinch to zoom is a must have feature for any application that displays images to the user, this one can be found in a wide variety of use cases:

  • Zooming in media contained a chat message
  • Detail screens
  • Cropping an image or video
  • Image galleries

The idea behind this library is to provide a set of components and utilities for the most common use cases of the "pinch to zoom" interaction.

Features

  • Limitless: Smoothly zoom in and out any component you want, you're not limited to images only.
  • Performance: Smooth gesture interactions powered by Reanimated and Gesture Handler.
  • SnapBackZoom: Zoom in and snap back, this component automatically snaps back to its original position once the gesture ends, making it ideal for previews.
  • ResumableZoom: Pick up where you left last time! This component remembers your previous interactions with it, just the same way it works in your Android/IOS OS integrated gallery application, making it ideal for detail screens and gallery screens.
  • CropZoom: An ideal, practical and unopinionated component for image and video cropping needs.
  • Mirror:: Mirror the current pinch gesture transformations to any other component you want.
  • Expo Go Compatible: This library has been written in typescript only with supported modules by the expo go app.

Documentation

To check out the docs, visit https://glazzes.github.io/react-native-zoom-toolkit/

Examples

To check out examples of this library, see the Example app

License

MIT License.

Keywords

react-native

FAQs

Package last updated on 24 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts