Sfoglia il codice sorgente

Prevent early reload from assertion crashing navigation (#2715)

* Prevent early reload from crashing navigation

* fix typo
frankenthumbs 6 anni fa
parent
commit
a829283eba
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      lib/ios/RNNEventEmitter.m

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

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