浏览代码

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