[ReactNative] backout orange box
Summary: @public This probably needs more thought - might want to differentiate between console.error and reportError. Test Plan: console.error and reportError no longer redbox. invariant and RCTLogError still do.
This commit is contained in:
parent
34f317695c
commit
7b7e0bf881
|
@ -171,9 +171,6 @@ void _RCTLogFormat(
|
|||
|
||||
// Log to red box
|
||||
if (level >= RCTLOG_REDBOX_LEVEL) {
|
||||
if (level < RCTLOG_FATAL_LEVEL) {
|
||||
[[RCTRedBox sharedInstance] setNextBackgroundColor:[UIColor colorWithRed:0.9 green:0.4 blue:0.2 alpha:1]];
|
||||
}
|
||||
[[RCTRedBox sharedInstance] showErrorMessage:message];
|
||||
}
|
||||
|
||||
|
|
|
@ -44,9 +44,7 @@ RCT_EXPORT_METHOD(reportSoftException:(NSString *)message
|
|||
[_delegate handleSoftJSExceptionWithMessage:message stack:stack];
|
||||
return;
|
||||
}
|
||||
RCTRedBox *box = [RCTRedBox sharedInstance];
|
||||
[box setNextBackgroundColor:[UIColor colorWithRed:0.9 green:0.4 blue:0.2 alpha:1]];
|
||||
[box showErrorMessage:message withStack:stack];
|
||||
[[RCTRedBox sharedInstance] showErrorMessage:message withStack:stack];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(reportFatalException:(NSString *)message
|
||||
|
|
Loading…
Reference in New Issue