瀏覽代碼

Fix crash when reload with overlays presented (#5774)

Yogev Ben David 5 年之前
父節點
當前提交
2fa17aaaca
No account linked to committer's email address
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/ios/RNNOverlayManager.m

+ 1
- 1
lib/ios/RNNOverlayManager.m 查看文件

@@ -30,7 +30,7 @@
30 30
 }
31 31
 
32 32
 - (void)dismissAllOverlays {
33
-    for (RNNOverlayWindow* overlayWindow  in _overlayWindows) {
33
+    for (RNNOverlayWindow* overlayWindow  in [_overlayWindows reverseObjectEnumerator]) {
34 34
         [self detachOverlayWindow:overlayWindow];
35 35
     }
36 36
 }