From 723e988416f453f5ed1d382f84f96d3a73d17f21 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 15 May 2015 15:32:10 -0700 Subject: [PATCH] [ReactNative] Redbox if JSC syntax errors --- React/Base/RCTBridge.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index a45c062cf..42973a3b6 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -1148,6 +1148,9 @@ RCT_INNER_BRIDGE_ONLY(_invokeAndProcessModule:(NSString *)module method:(NSStrin [[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptDidLoadNotification object:_parentBridge userInfo:@{ @"bridge": self }]; + } else { + [[RCTRedBox sharedInstance] showErrorMessage:[loadError localizedDescription] + withDetails:[loadError localizedFailureReason]]; } }]; }