forked from sushiswap/sushiswap-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
33 lines (28 loc) · 867 Bytes
/
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
/* tslint:disable:ordered-imports */
import "./globals";
import React from "react";
import { OpenSans_300Light, OpenSans_400Regular, OpenSans_600SemiBold } from "@expo-google-fonts/open-sans";
import { AppLoading } from "expo";
import { useFonts } from "expo-font";
import { ContextProvider } from "./src/context";
import { Screens } from "./src/screens";
import { YellowBox } from "react-native";
if (__DEV__) {
YellowBox.ignoreWarnings(["Setting a timer", "VirtualizedLists should never be nested"]);
}
const App = () => {
const [fontsLoaded] = useFonts({
light: OpenSans_300Light,
regular: OpenSans_400Regular,
bold: OpenSans_600SemiBold
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<ContextProvider>
<Screens />
</ContextProvider>
);
};
export default App;