1.0.9 • Published 2 years ago

expo-image-cropper v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

5 years ago