-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
45 lines (42 loc) · 1.1 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
35
36
37
38
39
40
41
42
43
44
45
import React from "react";
import { InMemoryCache, ApolloProvider } from "@apollo/client";
import ApolloClient from "apollo-boost";
import SignOutStack from "./navigator/SignOutStack";
import SignInStack from "./navigator/SignInStack";
import { AppLoading } from "expo";
import {
useFonts,
DMSans_400Regular,
DMSans_400Regular_Italic,
DMSans_500Medium,
DMSans_500Medium_Italic,
DMSans_700Bold,
DMSans_700Bold_Italic,
} from "@expo-google-fonts/dm-sans";
const client = new ApolloClient({
cache: new InMemoryCache(),
uri: `https://graphql.contentful.com/content/v1/spaces/o6s1ytbmzdxj`,
credentials: "same-origin",
headers: {
Authorization: `Bearer kXT1SoNx7qypidsaJWiYEcIBt_WfUOwli_KlA9zkPgE`,
},
});
export default function App() {
let [fontsLoaded] = useFonts({
DMSans_400Regular,
DMSans_400Regular_Italic,
DMSans_500Medium,
DMSans_500Medium_Italic,
DMSans_700Bold,
DMSans_700Bold_Italic,
});
if (!fontsLoaded) {
return <AppLoading />;
} else {
return (
<ApolloProvider client={client}>
<SignOutStack />
</ApolloProvider>
);
}
}