forked from Ivasoft/mattermost-mobile
disable native exception capture
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user