-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
33 lines (27 loc) · 1 KB
/
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
import React, { useState } from "react";
import AppLoading from 'expo-app-loading';
import { StatusBar } from 'expo-status-bar';
import { useFonts } from 'expo-font';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import colors from "./assets/themes/colors";
import MainApp from './components/MainApp/MainApp'
export default function App() {
let [fontsLoaded] = useFonts({
"Inter-Bold": require('./assets/fonts/Inter-Bold.otf'),
"Inter-Light": require('./assets/fonts/Inter-Light.otf'),
"Inter-Regular": require('./assets/fonts/Inter-Regular.otf'),
"Inter-Medium": require('./assets/fonts/Inter-Medium.otf'),
"Inter-Black": require('./assets/fonts/Inter-Black.otf'),
"Inter-Italic": require('./assets/fonts/Inter-Italic.otf'),
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<>
<StatusBar backgroundColor={colors.primary.colorOne}/>
<MainApp/>
</>
);
}