mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-20 17:38:16 +00:00
fixed bug with iOS cancel button (#1000)
This commit is contained in:
parent
b55bc5b1bc
commit
cc8aa64f47
@ -854,7 +854,7 @@ RCT_EXPORT_METHOD(openCropper:(NSDictionary *)options
|
||||
- (void)imageCropViewControllerDidCancelCrop:
|
||||
(RSKImageCropViewController *)controller {
|
||||
[self dismissCropper:controller selectionDone:NO completion:[self waitAnimationEnd:^{
|
||||
if (self.currentSelectionMode == CROPPING || [[self.options objectForKey:@"cropping"] boolValue]) {
|
||||
if (self.currentSelectionMode != PICKER && (self.currentSelectionMode == CROPPING || [[self.options objectForKey:@"cropping"] boolValue])) {
|
||||
self.reject(ERROR_PICKER_CANCEL_KEY, ERROR_PICKER_CANCEL_MSG, nil);
|
||||
}
|
||||
}]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user