Daniel Zlotin 6 年前
父节点
当前提交
945c03df0e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      lib/ios/RNNEventEmitter.m

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

@@ -52,6 +52,9 @@ static NSString* const onNavigationButtonPressed	= @"RNN.navigationButtonPressed
52 52
 # pragma mark private
53 53
 
54 54
 -(void)send:(NSString *)eventName body:(id)body {
55
+    if ([eventName isEqualToString:componentDidDisappear] && self.bridge == nil) {
56
+        return;
57
+    }
55 58
 	[self sendEventWithName:eventName body:body];
56 59
 }
57 60