MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / cropImage

Method cropImage

Libraries/Image/ImageEditor.js:62–69  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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
72module.exports = ImageEditor;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected