Make bridge initialization configurable
Reviewed By: majak Differential Revision: D3424412 fbshipit-source-id: 933925b97cb2bdfabd84c3533fefb01efb41d030
This commit is contained in:
parent
23e28eca11
commit
4269003cb7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue