Socket
Socket
Sign inDemoInstall

expo-image-cropper

Package Overview
Dependencies
805
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

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).


Version published
Weekly downloads
28
increased by133.33%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 11 Jul 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc