From 7bc444c4891c82bbb0edccb542dc7d3db56c4306 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Wed, 9 Nov 2022 14:38:53 -1000 Subject: [PATCH] remove the check in error boundary --- src/components/ErrorBoundary/index.native.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/ErrorBoundary/index.native.js b/src/components/ErrorBoundary/index.native.js index 7c47b83d0a48..e6cbc78b77c4 100644 --- a/src/components/ErrorBoundary/index.native.js +++ b/src/components/ErrorBoundary/index.native.js @@ -2,15 +2,8 @@ import crashlytics from '@react-native-firebase/crashlytics'; import BaseErrorBoundary from './BaseErrorBoundary'; import Log from '../../libs/Log'; -import CONFIG from '../../CONFIG'; BaseErrorBoundary.defaultProps.logError = (errorMessage, error, errorInfo) => { - // Do not log JS crashes to crashlytics if we are on dev or local release builds. - // They should only be sent on official staging or production versions of the app. - if (!CONFIG.SEND_CRASH_REPORTS) { - return; - } - // Log the error to the server Log.alert(`${errorMessage} - ${error.message}`, {errorInfo}, false);