Skip to content

Commit

Permalink
Make bridge initialization configurable
Browse files Browse the repository at this point in the history
Reviewed By: majak

Differential Revision: D3424412

fbshipit-source-id: 933925b97cb2bdfabd84c3533fefb01efb41d030
  • Loading branch information
javache authored and Facebook Github Bot 1 committed Jul 18, 2016
1 parent 23e28ec commit 4269003
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions React/Modules/RCTDevLoadingView.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ - (void)setBridge:(RCTBridge *)bridge
selector:@selector(hide)
name:RCTJavaScriptDidLoadNotification
object:nil];

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(hide)
name:RCTJavaScriptDidFailToLoadNotification
object:nil];
[self showWithURL:bridge.bundleURL];

if (bridge.loading) {
[self showWithURL:bridge.bundleURL];
}
}

RCT_EXPORT_METHOD(showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor)
Expand Down

0 comments on commit 4269003

Please sign in to comment.