瀏覽代碼

Prevent early reload from assertion crashing navigation (#2715)

* Prevent early reload from crashing navigation

* fix typo
frankenthumbs 6 年之前
父節點
當前提交
a829283eba
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      lib/ios/RNNEventEmitter.m

+ 3
- 0
lib/ios/RNNEventEmitter.m 查看文件

@@ -57,6 +57,9 @@ static NSString* const navigationCommands	= @"RNN.navigationCommands";
57 57
 # pragma mark private
58 58
 
59 59
 -(void)send:(NSString *)eventName body:(id)body {
60
+    if ([eventName isEqualToString:componentDidDisappear] && self.bridge == nil) {
61
+        return;
62
+    }
60 63
 	[self sendEventWithName:eventName body:body];
61 64
 }
62 65