10981eec50
* Revert "Add iOS hack to fix cropper failing to show (#7191)"
This reverts commit 25d20c6395.
* Proper fix
15 lines
773 B
Diff
15 lines
773 B
Diff
diff --git a/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m b/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m
|
|
index 9f20973..68d4766 100644
|
|
--- a/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m
|
|
+++ b/node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m
|
|
@@ -126,7 +126,8 @@ - (void) setConfiguration:(NSDictionary *)options
|
|
|
|
- (UIViewController*) getRootVC {
|
|
UIViewController *root = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
|
|
- while (root.presentedViewController != nil) {
|
|
+ while (root.presentedViewController != nil &&
|
|
+ !root.presentedViewController.isBeingDismissed) {
|
|
root = root.presentedViewController;
|
|
}
|
|
|