* 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
(
uri: string,
cropData: ImageCropData,
success: (uri: string) => void,
failure: (error: Object) => void
)
| 60 | * cropped image from the ImageStore when you are done with it. |
| 61 | */ |
| 62 | static cropImage( |
| 63 | uri: string, |
| 64 | cropData: ImageCropData, |
| 65 | success: (uri: string) => void, |
| 66 | failure: (error: Object) => void |
| 67 | ) { |
| 68 | RCTImageEditingManager.cropImage(uri, cropData, success, failure); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | module.exports = ImageEditor; |
no outgoing calls
no test coverage detected