Skip to content

Commit

Permalink
Check if sharedBridge is valid instead of only checking for not null (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteyn authored and guyca committed Apr 10, 2018
1 parent e7913d0 commit 8cbb947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCCManager.m
Expand Up @@ -140,7 +140,7 @@ -(void)initBridgeWithBundleURL:(NSURL *)bundleURL {
}

-(void)initBridgeWithBundleURL:(NSURL *)bundleURL launchOptions:(NSDictionary *)launchOptions {
if (self.sharedBridge) return;
if (self.sharedBridge && [self.sharedBridge isValid]) return;

self.bundleURL = bundleURL;
self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
Expand Down

0 comments on commit 8cbb947

Please sign in to comment.