|
@@ -19,6 +19,7 @@ import { API_HOST, API_URL, APP_VERSION } from 'src/constants';
|
|
|
import axios from 'axios';
|
|
|
import { API } from 'src/types';
|
|
|
import { storage, StoreType } from 'src/storage';
|
|
|
+import { setupGlobalErrorHandler } from 'src/utils/globalErrorHandler';
|
|
|
|
|
|
const IOS_STORE_URL = 'https://apps.apple.com/app/id6502843543';
|
|
|
const ANDROID_STORE_URL =
|
|
@@ -34,6 +35,8 @@ Sentry.init({
|
|
|
dsn: 'https://c9b37005f4be22a17a582603ebc17598@o4507781200543744.ingest.de.sentry.io/4507781253824592',
|
|
|
integrations: [Sentry.reactNativeTracingIntegration({ routingInstrumentation })],
|
|
|
debug: false,
|
|
|
+ enableNative: true,
|
|
|
+ enableNativeCrashHandling: true,
|
|
|
ignoreErrors: ['Network Error', 'ECONNABORTED', 'timeout of 10000ms exceeded'],
|
|
|
beforeSend(event, hint) {
|
|
|
if (userId) {
|
|
@@ -88,6 +91,10 @@ const InnerApp = () => {
|
|
|
const navigation = React.useRef(null);
|
|
|
const [isUpdateAvailable, setIsUpdateAvailable] = useState(false);
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ setupGlobalErrorHandler(navigation);
|
|
|
+ }, []);
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
setupInterceptors(errorContext);
|
|
|
}, [errorContext]);
|