Daniel Zlotin 6 lat temu
rodzic
commit
945c03df0e
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      lib/ios/RNNEventEmitter.m

+ 3
- 0
lib/ios/RNNEventEmitter.m Wyświetl plik

@@ -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