diff options
author | dan <dan.abramov@gmail.com> | 2024-12-19 21:47:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 21:47:00 +0000 |
commit | 10981eec50a8e744e4878d2efbb39fa7847ad4d1 (patch) | |
tree | bae5333e4322b4cdbf5a1decda04d361ab8ca21a /patches | |
parent | fb920f89d1afd091ab336d8fc8975607787c9a27 (diff) | |
download | voidsky-10981eec50a8e744e4878d2efbb39fa7847ad4d1.tar.zst |
Proper fix for iOS cropper being stuck (#7194)
* Revert "Add iOS hack to fix cropper failing to show (#7191)" This reverts commit 25d20c6395a093a6cfc6aed4d08469f7f128f358. * Proper fix
Diffstat (limited to 'patches')
-rw-r--r-- | patches/react-native-image-crop-picker+0.41.6.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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 000000000..7017ac80e --- /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; + } + |