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

expo-image-cropper

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-image-cropper

Allows user to crop image with given aspect ratio for react native using expo on Android and IOS - (Workaround for IOS always square images).

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
66
increased by73.68%
Maintainers
1
Weekly downloads
 
Created
Source

Allows user to crop image with given aspect ratio for react native using expo on Android and IOS - (Workaround for IOS always square images).

Installation

yarn add expo-image-cropper
or
npm i expo-image-cropper --save 

API

ImageEditor

isRequired if there is a * in the name field

nameProptypesDescription
imageUri *string
fixedAspectRatio *numberExpect => aspect ratio.
minimumCropDimensions(size)Expect => {width: number, height: number} [Default 100 X 100].
onEditingCancel *funcvoid
onEditingComplete *funcReturns image object (image object fields => uri, width, height).

Example

import ImageEditor from 'expo-image-cropper';

<ImageEditor
    imageUri={uri}
    fixedAspectRatio={2 / 3}
    minimumCropDimensions={{
        width: 50,
        height: 50,
    }}
    onEditingCancel={() => {
        console.log('onEditingCancel');
    }}
    onEditingComplete={(image) => {
        console.log(image);
    }}
/>

Contact

gmail: shmuelpick1999@gmail.com

Keywords

FAQs

Package last updated on 11 Jul 2022

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