-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
29 lines (23 loc) · 868 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
import React from "react";
import Navigator from "./routes/MainStack";
import {NavigationContainer} from "@react-navigation/native";
import {useFonts} from "expo-font";
import UserCredentialsProvider from "./hooks/useUserCredentials";
function App() {
const [fontIsLoaded] = useFonts({
'montserrat': require('./assets/fonts/static/Montserrat-Regular.ttf'),
'montserrat-bold': require('./assets/fonts/static/Montserrat-Bold.ttf'),
'montserrat-light': require('./assets/fonts/static/Montserrat-Light.ttf'),
});
global.Buffer = require('buffer').Buffer;
return fontIsLoaded ? (
<>
<UserCredentialsProvider>
<NavigationContainer>
<Navigator />
</NavigationContainer>
</UserCredentialsProvider>
</>
) : null;
}
export default App;