From fe348ab53d18de07aa7d6cb1e9a78bb805e52eaf Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Wed, 18 Dec 2019 19:26:55 -0800 Subject: [PATCH] LogBox fixes for OSS Summary: This diff fixes two issues with LogBox in OSS. Changelog: [Internal] Reviewed By: mmmulani Differential Revision: D19165696 fbshipit-source-id: 4dd9c480ea3d2b205f8e65cb32203949b1e32e8a --- Libraries/LogBox/Data/LogBoxData.js | 2 +- Libraries/YellowBox/YellowBox.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/LogBox/Data/LogBoxData.js b/Libraries/LogBox/Data/LogBoxData.js index 1ee81e5a635..83e64356fac 100644 --- a/Libraries/LogBox/Data/LogBoxData.js +++ b/Libraries/LogBox/Data/LogBoxData.js @@ -74,7 +74,7 @@ let warningFilter: WarningFilter = function(format) { return { finalFormat: format, forceDialogImmediately: false, - suppressDialog_LEGACY: false, + suppressDialog_LEGACY: true, suppressCompletely: false, monitorEvent: 'unknown', monitorListVersion: 0, diff --git a/Libraries/YellowBox/YellowBox.js b/Libraries/YellowBox/YellowBox.js index fdf0ce6780a..c77aba67d79 100644 --- a/Libraries/YellowBox/YellowBox.js +++ b/Libraries/YellowBox/YellowBox.js @@ -74,11 +74,12 @@ if (__DEV__) { } static install(): void { - _isInstalled = true; if (_isLogBoxEnabled) { LogBox.install(); return; } + _isInstalled = true; + errorImpl = function(...args) { registerError(...args); };