-
Notifications
You must be signed in to change notification settings - Fork 7
/
App.js
26 lines (23 loc) · 813 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
import * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { LoadAssets } from "./src/components";
import AppNavigator from "./src/navigator";
import { Icons } from "./src/constants";
const assets = [...Object.values(Icons)];
const fonts = {
"Gotham-Bold": require("./assets/fonts/Gotham/Gotham-Bold.otf"),
"Gotham-Light": require("./assets/fonts/Gotham/Gotham-Light.otf"),
"Gotham-Medium": require("./assets/fonts/Gotham/Gotham-Medium.otf"),
};
export default function App() {
return (
<SafeAreaProvider>
<NavigationContainer>
<LoadAssets {...{ fonts, assets }}>
<AppNavigator />
</LoadAssets>
</NavigationContainer>
</SafeAreaProvider>
);
}