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";




const App = () => {

  return (
    <SafeAreaProvider>
      <Provider store={store}>
        <PersistGate persistor={persistor}>
          <ApolloProvider client={client}>
            <Router />
          </ApolloProvider>
        </PersistGate>
      </Provider>
    </SafeAreaProvider>
  );

}
export default Sentry.wrap(App);