mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-24 11:28:14 +00:00
Revert "Fixes possibly nil window lookup. (#1354)"
This reverts commit 83b318ba0d75d30db4fe237f8be3e152ad82811f.
This commit is contained in:
parent
2b7a0851c9
commit
60c8058705
@ -124,7 +124,7 @@ RCT_EXPORT_MODULE();
|
||||
}
|
||||
|
||||
- (UIViewController*) getRootVC {
|
||||
UIViewController *root = [[[[UIApplication sharedApplication] windows] lastObject] rootViewController];
|
||||
UIViewController *root = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
|
||||
while (root.presentedViewController != nil) {
|
||||
root = root.presentedViewController;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user