diff --git a/index-common.js b/index-common.js index c6bbab7866d..cce186ddbf9 100644 --- a/index-common.js +++ b/index-common.js @@ -17,7 +17,6 @@ if (__DEV__) { } catch {} } -require("./src/app/system/errorReporting/setupSentry").setupSentry({ environment: "bootstrap" }) import "react-native-url-polyfill/auto" const { AppRegistry } = require("react-native") diff --git a/src/app/system/errorReporting/setupSentry.ts b/src/app/system/errorReporting/setupSentry.ts index b8ae1fb3080..9f6f4b1e267 100644 --- a/src/app/system/errorReporting/setupSentry.ts +++ b/src/app/system/errorReporting/setupSentry.ts @@ -71,7 +71,7 @@ export function setupSentry(props: SetupSentryProps = { debug: false }) { tracesSampleRate: props.debug ? 1.0 : 0.1, debug: props.debug, integrations: [ - new Sentry.ReactNativeTracing({ + Sentry.reactNativeTracingIntegration({ routingInstrumentation, beforeNavigate: (context: TransactionContext) => { /**