mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-22 10:28:23 +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:
|
- (void)imageCropViewControllerDidCancelCrop:
|
||||||
(RSKImageCropViewController *)controller {
|
(RSKImageCropViewController *)controller {
|
||||||
[self dismissCropper:controller selectionDone:NO completion:[self waitAnimationEnd:^{
|
[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);
|
self.reject(ERROR_PICKER_CANCEL_KEY, ERROR_PICKER_CANCEL_MSG, nil);
|
||||||
}
|
}
|
||||||
}]];
|
}]];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user