File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -219,13 +219,8 @@ - (void) dealloc {
219219- (UIViewController *)currentViewController
220220{
221221 UIViewController *current = [UIApplication sharedApplication ].keyWindow .rootViewController ;
222- if (@available (iOS 8.0 , *)) {
223- while (current.presentedViewController && ![current.presentedViewController isKindOfClass: UIAlertController.class]) {
224- current = current.presentedViewController ;
225- }
226- } else {
227- // RN Requires iOS 8. Nothing to do here. Still.
228- while (current.presentedViewController ) current = current.presentedViewController ;
222+ while (current.presentedViewController && ![current.presentedViewController isKindOfClass: UIAlertController.class]) {
223+ current = current.presentedViewController ;
229224 }
230225 return current;
231226}
You can’t perform that action at this time.
0 commit comments