Przeglądaj źródła

Check if sharedBridge is valid instead of only checking for not null (#2584)

Gareth Steyn 6 lat temu
rodzic
commit
8cbb9477ce
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      ios/RCCManager.m

+ 1
- 1
ios/RCCManager.m Wyświetl plik

@@ -140,7 +140,7 @@
140 140
 }
141 141
 
142 142
 -(void)initBridgeWithBundleURL:(NSURL *)bundleURL launchOptions:(NSDictionary *)launchOptions {
143
-    if (self.sharedBridge) return;
143
+    if (self.sharedBridge && [self.sharedBridge isValid]) return;
144 144
     
145 145
     self.bundleURL = bundleURL;
146 146
     self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];