-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
63 lines (55 loc) · 1.78 KB
/
App.tsx
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import 'react-native-get-random-values';
import 'app/services/firebaseClient';
import React from 'react';
import { LogBox, Platform } from 'react-native';
import { Provider } from 'react-redux';
import { NativeBaseProvider } from 'native-base';
import {
useFonts,
Quicksand_300Light,
Quicksand_400Regular,
Quicksand_500Medium,
Quicksand_600SemiBold,
Quicksand_700Bold,
} from '@expo-google-fonts/quicksand';
import { Yellowtail_400Regular } from '@expo-google-fonts/yellowtail';
import AppLoading from 'expo-app-loading';
import { StatusBar } from 'expo-status-bar';
import { Router } from 'app/routes/Router';
import { theme } from 'app/styles/theme';
import { store } from 'app/store/Store';
import { Loading } from 'app/components/molecules/Loading';
import { ProCrisAlert } from 'app/components/organisms/ProCrisAlert';
import { SummaryProvider } from 'app/hooks/Summary';
if (Platform.OS !== 'web') {
LogBox.ignoreLogs([
'Setting a timer for a long period of time',
'NativeBase: The contrast',
'Require cycle',
]);
}
export default function App() {
let [fontsLoaded] = useFonts({
Quicksand_300Light,
Quicksand_400Regular,
Quicksand_500Medium,
Quicksand_600SemiBold,
Quicksand_700Bold,
Yellowtail_400Regular,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<NativeBaseProvider theme={theme}>
<Provider store={store}>
<SummaryProvider>
<Router />
<Loading />
<ProCrisAlert />
</SummaryProvider>
</Provider>
<StatusBar style="light" />
</NativeBaseProvider>
);
}