2nd set of WIP changes.
This commit is contained in:
20
App.js
20
App.js
@@ -3,7 +3,7 @@ import React from "react";
|
||||
import { DefaultTheme, Provider as PaperProvider } from "react-native-paper";
|
||||
import { Provider } from "react-redux";
|
||||
import { PersistGate } from "redux-persist/integration/react";
|
||||
import * as Sentry from "sentry-expo";
|
||||
import * as Sentry from '@sentry/react-native';
|
||||
import ScreenMainComponent from "./components/screen-main/screen-main.component";
|
||||
import { logImEXEvent } from "./firebase/firebase.analytics";
|
||||
import { client } from "./graphql/client";
|
||||
@@ -17,17 +17,16 @@ import { SafeAreaProvider } from "react-native-safe-area-context";
|
||||
Sentry.init({
|
||||
dsn: "https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.sentry.io/5558869",
|
||||
enableInExpoDevelopment: true,
|
||||
tracesSampleRate: 0.2,
|
||||
integrations: [
|
||||
new Sentry.Native.ReactNativeTracing({
|
||||
tracingOrigins: ["localhost", "imex.online", "cloudinary.com", /^\//],
|
||||
// ... other options
|
||||
}),
|
||||
],
|
||||
// tracesSampleRate: 0.2,
|
||||
// integrations: [
|
||||
// new Sentry.Native.ReactNativeTracing({
|
||||
// tracingOrigins: ["localhost", "imex.online", "cloudinary.com", /^\//],
|
||||
// // ... other options
|
||||
// }),
|
||||
// ],
|
||||
debug: true, // Sentry will try to print out useful debugging information if something goes wrong with sending an event. Set this to `false` in production.
|
||||
});
|
||||
|
||||
Sentry.Native.nativeCrash();
|
||||
|
||||
const theme = {
|
||||
...DefaultTheme,
|
||||
@@ -38,7 +37,7 @@ const theme = {
|
||||
},
|
||||
};
|
||||
|
||||
export default class App extends React.Component {
|
||||
class App extends React.Component {
|
||||
async componentDidMount() {
|
||||
logImEXEvent("imexmobile_app_start");
|
||||
}
|
||||
@@ -60,3 +59,4 @@ export default class App extends React.Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
export default Sentry.wrap(App);
|
||||
Reference in New Issue
Block a user