mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 04:50:59 +00:00
9ec9567390
Differential Revision: D6261799 fbshipit-source-id: 269e151c5d136c1d508d9f2a060c0c670d0fe0f2
800 B
800 B
id | title | layout | category | permalink | next | previous |
---|---|---|---|---|---|---|
imageeditor | ImageEditor | docs | APIs | docs/imageeditor.html | imagepickerios | geolocation |
Methods
Reference
Methods
cropImage()
static cropImage(uri, cropData, success, failure)
Crop the image specified by the URI param. If URI points to a remote image, it will be downloaded automatically. If the image cannot be loaded/downloaded, the failure callback will be called.
If the cropping process is successful, the resultant cropped image will be stored in the ImageStore, and the URI returned in the success callback will point to the image in the store. Remember to delete the cropped image from the ImageStore when you are done with it.