-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
54 lines (51 loc) · 1.36 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
import "react-native-gesture-handler";
import { config } from "./config";
import { Provider } from "overmind-react";
import AppLoading from "expo-app-loading";
import * as eva from "@eva-design/eva";
import { ApplicationProvider } from "@ui-kitten/components";
import { NavigationContainer } from "@react-navigation/native";
import { default as theme } from "./theme.json";
import { LogBox } from "react-native";
// @ts-ignore
import React, { useEffect } from "react";
import { createOvermind } from "overmind";
import Application from "./Application";
import {
useFonts,
Exo_400Regular,
Exo_600SemiBold,
Exo_700Bold,
} from "@expo-google-fonts/exo";
import {
Cairo_400Regular,
Cairo_600SemiBold,
Cairo_700Bold,
} from "@expo-google-fonts/cairo";
LogBox.ignoreAllLogs(true);
const overmind = createOvermind(config, {
devtools: "localhost:3031",
});
export default function App() {
const [isLoaded] = useFonts({
Cairo_400Regular,
Cairo_600SemiBold,
Cairo_700Bold,
Exo_400Regular,
Exo_600SemiBold,
Exo_700Bold,
});
if (!isLoaded) {
return <AppLoading />;
} else {
return (
<Provider value={overmind}>
<ApplicationProvider {...eva} theme={{ ...eva.dark, ...theme }}>
<NavigationContainer>
<Application />
</NavigationContainer>
</ApplicationProvider>
</Provider>
);
}
}