-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (32 loc) · 1.14 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import "react-native-gesture-handler";
import React from "react";
import { NhostClient, NhostProvider, NhostReactProvider } from "@nhost/react";
import { SafeAreaProvider } from "react-native-safe-area-context";
import * as SecureStore from "expo-secure-store";
import { NhostApolloProvider } from "@nhost/react-apollo";
import Navigation from "./src/navigation/AuthStack";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { MenuProvider } from "react-native-popup-menu";
import { NHOST_SUBDOMAIN, NHOST_REGION } from "@env";
import "moment/locale/fr";
const nhost = new NhostClient({
subdomain: "cqdfqhvzqoncuuocckvj",
region: "eu-central-1",
clientStorageType: "expo-secure-storage",
clientStorage: SecureStore,
});
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaProvider>
<MenuProvider>
<NhostProvider nhost={nhost}>
<NhostApolloProvider nhost={nhost}>
<Navigation />
</NhostApolloProvider>
</NhostProvider>
</MenuProvider>
</SafeAreaProvider>
</GestureHandlerRootView>
);
}