From 33bc0b4de464bddd055e63565f0b51002a7030ec Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 19 Dec 2024 21:33:53 +0000 Subject: [PATCH] Proper fix --- .../react-native-image-crop-picker+0.41.6.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/react-native-image-crop-picker+0.41.6.patch diff --git a/patches/react-native-image-crop-picker+0.41.6.patch b/patches/react-native-image-crop-picker+0.41.6.patch new file mode 100644 index 0000000000..7017ac80ea --- /dev/null +++ b/patches/react-native-image-crop-picker+0.41.6.patch @@ -0,0 +1,14 @@ +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; + } +