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