From 94f7f3e1c2f28ab622b83153f965ff3f6ffd43bd Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Sat, 3 Sep 2022 04:26:59 -0400 Subject: [PATCH] disable native exception capture --- app/utils/error_handling.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/utils/error_handling.ts b/app/utils/error_handling.ts index 773d61344c..721a05b68b 100644 --- a/app/utils/error_handling.ts +++ b/app/utils/error_handling.ts @@ -2,7 +2,11 @@ // See LICENSE.txt for license information. import {Alert} from 'react-native'; -import {setJSExceptionHandler, setNativeExceptionHandler} from 'react-native-exception-handler'; +import { + setJSExceptionHandler, + + // setNativeExceptionHandler +} from 'react-native-exception-handler'; import {DEFAULT_LOCALE, getTranslations, t} from '@i18n'; import {dismissAllModals} from '@screens/navigation'; @@ -20,7 +24,8 @@ class JavascriptAndNativeErrorHandler { initializeErrorHandling = () => { initializeSentry(); setJSExceptionHandler(this.errorHandler, false); - setNativeExceptionHandler(this.nativeErrorHandler, false); + + // setNativeExceptionHandler(this.nativeErrorHandler, false); }; nativeErrorHandler = (e: string) => {