We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15603d commit 41b0b58Copy full SHA for 41b0b58
ReactKit/Base/RCTRootView.m
@@ -90,7 +90,12 @@ - (void)dealloc
90
- (void)bundleFinishedLoading:(NSError *)error
91
{
92
if (error != nil) {
93
- [[RCTRedBox sharedInstance] showErrorMessage:error.localizedDescription withDetails:error.localizedFailureReason];
+ NSArray *stack = [[error userInfo] objectForKey:@"stack"];
94
+ if (stack) {
95
+ [[RCTRedBox sharedInstance] showErrorMessage:[error localizedDescription] withStack:stack];
96
+ } else {
97
+ [[RCTRedBox sharedInstance] showErrorMessage:[error localizedDescription] withDetails:[error localizedFailureReason]];
98
+ }
99
} else {
100
101
[_bridge.uiManager registerRootView:self];
0 commit comments