diff --git a/ios/src/ImageCropPicker.m b/ios/src/ImageCropPicker.m index 710141068..fbe3342e5 100644 --- a/ios/src/ImageCropPicker.m +++ b/ios/src/ImageCropPicker.m @@ -790,7 +790,16 @@ - (void)dismissCropper:(UIViewController *)controller selectionDone:(BOOL)select } break; case CAMERA: - [controller.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:completion]; + if(selectionDone) { + [controller.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:completion]; + } else { + // If a user opens the image picker, attempts to crop the image, + // but then cancels the cropping process, it would return app with reject + [controller.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:[self waitAnimationEnd:^{ + self.reject(ERROR_PICKER_CANCEL_KEY, ERROR_PICKER_CANCEL_MSG, nil); + }]]; + + } break; } }