Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-image-crop-picker

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-image-crop-picker

Select single or multiple images, with cropping option

  • 0.41.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is react-native-image-crop-picker?

The react-native-image-crop-picker package is a powerful library for React Native that allows users to select images and videos from the device's library or directly from the camera. It also provides functionalities for cropping, compressing, and editing images.

What are react-native-image-crop-picker's main functionalities?

Image Picker

This feature allows users to pick an image from their device's library. The `openPicker` method opens the image library, and the `cropping` option enables the cropping tool.

import ImagePicker from 'react-native-image-crop-picker';

ImagePicker.openPicker({
  width: 300,
  height: 400,
  cropping: true
}).then(image => {
  console.log(image);
});

Camera Picker

This feature allows users to capture an image using the device's camera. The `openCamera` method opens the camera interface, and the `cropping` option enables the cropping tool.

import ImagePicker from 'react-native-image-crop-picker';

ImagePicker.openCamera({
  width: 300,
  height: 400,
  cropping: true
}).then(image => {
  console.log(image);
});

Cropping

This feature allows users to crop an existing image. The `openCropper` method opens the cropping tool for the specified image path.

import ImagePicker from 'react-native-image-crop-picker';

ImagePicker.openCropper({
  path: 'path-to-image',
  width: 300,
  height: 400
}).then(image => {
  console.log(image);
});

Multiple Image Selection

This feature allows users to select multiple images from their device's library. The `multiple` option enables the selection of multiple images.

import ImagePicker from 'react-native-image-crop-picker';

ImagePicker.openPicker({
  multiple: true
}).then(images => {
  console.log(images);
});

Video Picker

This feature allows users to pick a video from their device's library. The `mediaType` option set to 'video' enables video selection.

import ImagePicker from 'react-native-image-crop-picker';

ImagePicker.openPicker({
  mediaType: 'video'
}).then(video => {
  console.log(video);
});

Other packages similar to react-native-image-crop-picker

Keywords

FAQs

Package last updated on 04 May 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc