disable native exception capture

This commit is contained in:
Elias Nahum
2022-09-03 04:26:59 -04:00
parent 68da0cc8a5
commit 94f7f3e1c2

View File

@@ -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) => {