-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
43 lines (39 loc) · 1012 Bytes
/
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
import React from 'react';
import { ApolloProvider } from '@apollo/client';
import { useFonts } from 'expo-font';
import { Montserrat_700Bold } from '@expo-google-fonts/montserrat';
import {
OpenSans_400Regular,
OpenSans_400Regular_Italic,
OpenSans_600SemiBold,
OpenSans_700Bold,
} from '@expo-google-fonts/open-sans';
import client from './utils/apolloClient';
import { NavigationContainer } from '@react-navigation/native';
import { View, Text } from 'react-native';
import { Root } from './screens/Root';
const App = () => {
const [fontsLoaded] = useFonts({
Montserrat_700Bold,
OpenSans_400Regular,
OpenSans_400Regular_Italic,
OpenSans_600SemiBold,
OpenSans_700Bold,
});
if (!fontsLoaded) {
return (
<View>
<Text>Loading...</Text>
</View>
);
} else {
return (
<ApolloProvider client={client}>
<NavigationContainer>
<Root />
</NavigationContainer>
</ApolloProvider>
);
}
};
export default App;