Daniel Zlotin 6 years ago
parent
commit
945c03df0e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/ios/RNNEventEmitter.m

+ 3
- 0
lib/ios/RNNEventEmitter.m View File

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