62 lines
2.0 KiB
JavaScript
62 lines
2.0 KiB
JavaScript
import { ApolloProvider } from "@apollo/client";
|
|
import * as Sentry from '@sentry/react-native';
|
|
import "expo-asset";
|
|
import 'expo-dev-client';
|
|
import "intl";
|
|
import "intl/locale-data/jsonp/en";
|
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
import { Provider } from "react-redux";
|
|
import { PersistGate } from "redux-persist/integration/react";
|
|
import Router from "./components-new/router/router";
|
|
import { client } from "./graphql/client";
|
|
import { persistor, store } from "./redux/store";
|
|
import "./translations/i18n";
|
|
|
|
Sentry.init({
|
|
dsn: 'https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.us.sentry.io/5558869',
|
|
|
|
// Adds more context data to events (IP address, cookies, user, etc.)
|
|
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
|
|
sendDefaultPii: true,
|
|
|
|
// Enable Logs
|
|
enableLogs: true,
|
|
|
|
// Configure Session Replay
|
|
replaysSessionSampleRate: 0.1,
|
|
replaysOnErrorSampleRate: 1,
|
|
integrations: [Sentry.mobileReplayIntegration(), Sentry.feedbackIntegration()],
|
|
ignoreErrors: [/.*Network Error.*/i]
|
|
// uncomment the line below to enable Spotlight (https://spotlightjs.com)
|
|
// spotlight: __DEV__,
|
|
});
|
|
|
|
// Sentry.init({
|
|
// dsn: "https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.sentry.io/5558869",
|
|
// enableInExpoDevelopment: true,
|
|
// // tracesSampleRate: 0.2,
|
|
// // integrations: [
|
|
// // new Sentry.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.
|
|
// });
|
|
|
|
|
|
const App = () => {
|
|
return (
|
|
<SafeAreaProvider>
|
|
<Provider store={store}>
|
|
<PersistGate persistor={persistor}>
|
|
<ApolloProvider client={client}>
|
|
<Router />
|
|
</ApolloProvider>
|
|
</PersistGate>
|
|
</Provider>
|
|
</SafeAreaProvider>
|
|
);
|
|
|
|
}
|
|
export default Sentry.wrap(App); |