Revert "Fixes possibly nil window lookup. (#1354)"

This reverts commit 83b318ba0d75d30db4fe237f8be3e152ad82811f.
This commit is contained in:
Ivan Pusic 2020-08-26 09:02:52 +02:00
parent 2b7a0851c9
commit 60c8058705
No known key found for this signature in database
GPG Key ID: 3DA903AB9F026DE9

View File

@ -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;
}