-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
executable file
·38 lines (32 loc) · 1.08 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
34
35
36
37
38
import React from 'react';
import { useFonts } from 'expo-font';
import {LocaleProvider} from '/src/components/locale';
import {FirebaseProvider} from '/src/api/firebase';
import {ProvidersProvider} from '/src/api/providers';
import {ThemeProvider} from '/src/components/theme';
import Screens from '/src/Screens/';
console.disableYellowBox = true;
const App = () => {
const [loaded] = useFonts({
'Nunito': require('/assets/fonts/Nunito/static/Nunito-Regular.ttf'),
'Nunito-Medium': require('/assets/fonts/Nunito/static/Nunito-Medium.ttf'),
'Nunito-SemiBold': require('/assets/fonts/Nunito/static/Nunito-SemiBold.ttf'),
'Nunito-Bold': require('/assets/fonts/Nunito/static/Nunito-Bold.ttf'),
'Nunito-ExtraBold': require('/assets/fonts/Nunito/static/Nunito-ExtraBold.ttf'),
});
if (!loaded) {
return null;
}
return (
<LocaleProvider>
<FirebaseProvider>
<ProvidersProvider>
<ThemeProvider>
<Screens />
</ThemeProvider>
</ProvidersProvider>
</FirebaseProvider>
</LocaleProvider>
);
};
export default App;