-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
29 lines (27 loc) · 913 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
/* eslint-disable global-require */
import { NavigationContainer } from '@react-navigation/native';
import { useFonts } from 'expo-font';
import React from 'react';
import { ThemeProvider } from 'react-native-elements';
import { AuthContextProvider } from './src/context/AuthContext';
import './src/firebase/firebaseApp';
import AppNavigator from './src/navigation/AppNavigator';
export default function App() {
const [fontsLoaded] = useFonts({
DMSans_700Bold: require('./src/assets/fonts/DMSans-Bold.ttf'),
DMSans_500Medium: require('./src/assets/fonts/DMSans-Medium.ttf'),
DMSans_400Regular: require('./src/assets/fonts/DMSans-Regular.ttf'),
});
if (!fontsLoaded) {
return null;
}
return (
<ThemeProvider>
<NavigationContainer>
<AuthContextProvider>
<AppNavigator />
</AuthContextProvider>
</NavigationContainer>
</ThemeProvider>
);
}