Skip to content

Commit

Permalink
Fix crash when reload with overlays presented (#5774)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Dec 15, 2019
1 parent 8f9e719 commit 2fa17aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ios/RNNOverlayManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (void)dismissOverlay:(UIViewController*)viewController {
}

- (void)dismissAllOverlays {
for (RNNOverlayWindow* overlayWindow in _overlayWindows) {
for (RNNOverlayWindow* overlayWindow in [_overlayWindows reverseObjectEnumerator]) {
[self detachOverlayWindow:overlayWindow];
}
}
Expand Down

0 comments on commit 2fa17aa

Please sign in to comment.