diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index 998fb7bca59d09..6802df849273c8 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -1061,6 +1061,8 @@ - (void)initJS RCTJavaScriptLoader *loader = [[RCTJavaScriptLoader alloc] initWithBridge:self]; [loader loadBundleAtURL:bundleURL onComplete:^(NSError *error, NSString *script) { + + [[RCTRedBox sharedInstance] dismiss]; _loading = NO; if (!self.isValid) { diff --git a/React/Base/RCTDevMenu.m b/React/Base/RCTDevMenu.m index 8a5f23f9d2f256..7574b0dcdeeef6 100644 --- a/React/Base/RCTDevMenu.m +++ b/React/Base/RCTDevMenu.m @@ -115,6 +115,11 @@ - (instancetype)init selector:@selector(jsLoaded:) name:RCTJavaScriptDidLoadNotification object:nil]; + + [notificationCenter addObserver:self + selector:@selector(jsLoaded:) + name:RCTJavaScriptDidFailToLoadNotification + object:nil]; _defaults = [NSUserDefaults standardUserDefaults]; _settings = [[NSMutableDictionary alloc] init];