mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
LogBox - Don't show native redbox for JS errors on Android
Summary: Will not show native redboxes when LogBox handles them Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D18236608 fbshipit-source-id: 1c60c69419b1a823594caf650d67693d4ad2076b
This commit is contained in:
committed by
Facebook Github Bot
parent
1807a6afee
commit
93f4bb23e2
+8
-1
@@ -65,7 +65,14 @@ public class ExceptionsManagerModule extends BaseJavaModule {
|
||||
boolean isFatal = data.hasKey("isFatal") ? data.getBoolean("isFatal") : false;
|
||||
|
||||
if (mDevSupportManager.getDevSupportEnabled()) {
|
||||
mDevSupportManager.showNewJSError(message, stack, id);
|
||||
boolean suppressRedBox = false;
|
||||
if (data.getMap("extraData") != null && data.getMap("extraData").hasKey("suppressRedBox")) {
|
||||
suppressRedBox = data.getMap("extraData").getBoolean("suppressRedBox");
|
||||
}
|
||||
|
||||
if (!suppressRedBox) {
|
||||
mDevSupportManager.showNewJSError(message, stack, id);
|
||||
}
|
||||
} else {
|
||||
String extraDataAsJson = ExceptionDataHelper.getExtraDataAsJson(data);
|
||||
if (isFatal) {
|
||||
|
||||
Reference in New Issue
Block a user