-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
49 lines (44 loc) · 1.04 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import React from 'react';
import {
useFonts,
Staatliches_400Regular,
} from '@expo-google-fonts/staatliches';
import {
SourceSansPro_400Regular,
SourceSansPro_600SemiBold
} from '@expo-google-fonts/source-sans-pro';
import { StatusBar, View } from 'react-native';
import Load from './src/components/Load';
import StackRoutes from './src/routes/stack.routes';
import colors from './src/styles/colors';
import HooksProvider from './src/hooks';
const App: React.FC = () => {
const [ isLoaded ] = useFonts({
regular: SourceSansPro_400Regular,
medium: SourceSansPro_600SemiBold,
bold: Staatliches_400Regular,
});
if (!isLoaded) {
return <Load />
}
return (
<>
<StatusBar
backgroundColor={colors.backgroundTwo}
barStyle="light-content"
translucent
/>
<View
style={{
backgroundColor: colors.background,
flex: 1,
}}
>
<HooksProvider>
<StackRoutes/>
</HooksProvider>
</View>
</>
)
}
export default App;