43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
import 'expo-dev-client';
|
|
import { ApolloProvider } from "@apollo/client";
|
|
import "expo-asset";
|
|
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.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 App;
|