Parcourir la source

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

Gareth Steyn il y a 6 ans
Parent
révision
8cbb9477ce
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      ios/RCCManager.m

+ 1
- 1
ios/RCCManager.m Voir le fichier

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