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
This commit is contained in:
Rick Hanlon
2019-12-18 19:26:55 -08:00
parent 0fd83e4786
commit fe348ab53d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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,
+2 -1
View File
@@ -74,11 +74,12 @@ if (__DEV__) {
}
static install(): void {
_isInstalled = true;
if (_isLogBoxEnabled) {
LogBox.install();
return;
}
_isInstalled = true;
errorImpl = function(...args) {
registerError(...args);
};