Tell us which versions you are using:
openPicker with Cropper -> select image -> cancel at cropper -> select another image -> confirm at copper -> an image should be returned.
openPicker with Cropper -> select image -> cancel at cropper -> select another image -> confirm at copper -> no image is returned.
Turn on debug mode show:
The callback openPicker() exists in module ImageCropPicker; but only one callback my be registered to a function in a native module.
openPicker with Cropper, select image , cancel at cropper
select another image
confirm at copper
// stacktrace or any other useful debug info
Love react-native-image-crop-picker? Please consider supporting our collective:
馃憠 https://opencollective.com/react-native-image-crop-picker/donate
Possible Fix ?
ImageCropPicker.m
Most helpful comment
Possible Fix ?
ImageCropPicker.m
(RSKImageCropViewController *)controller {
[self dismissCropper:controller selectionDone:NO completion:[self waitAnimationEnd:^{
if (_self.currentSelectionMode != PICKER &&_ (self.currentSelectionMode == CROPPING || [[self.options objectForKey:@"cropping"] boolValue])) {
self.reject(ERROR_PICKER_CANCEL_KEY, ERROR_PICKER_CANCEL_MSG, nil);
}
}]];
}