diff --git a/ReactKit/Base/RCTRootView.m b/ReactKit/Base/RCTRootView.m index 7606c3df2550ea..bfe2466f1cc15f 100644 --- a/ReactKit/Base/RCTRootView.m +++ b/ReactKit/Base/RCTRootView.m @@ -90,7 +90,12 @@ - (void)dealloc - (void)bundleFinishedLoading:(NSError *)error { if (error != nil) { - [[RCTRedBox sharedInstance] showErrorMessage:error.localizedDescription withDetails:error.localizedFailureReason]; + NSArray *stack = [[error userInfo] objectForKey:@"stack"]; + if (stack) { + [[RCTRedBox sharedInstance] showErrorMessage:[error localizedDescription] withStack:stack]; + } else { + [[RCTRedBox sharedInstance] showErrorMessage:[error localizedDescription] withDetails:[error localizedFailureReason]]; + } } else { [_bridge.uiManager registerRootView:self];