Make bridge initialization configurable

Reviewed By: majak

Differential Revision: D3424412

fbshipit-source-id: 933925b97cb2bdfabd84c3533fefb01efb41d030
This commit is contained in:
Pieter De Baets 2016-07-18 07:12:23 -07:00 committed by Facebook Github Bot 1
parent 23e28eca11
commit 4269003cb7
1 changed files with 4 additions and 2 deletions

View File

@ -55,12 +55,14 @@ RCT_EXPORT_MODULE()
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)