-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
55 lines (50 loc) · 1.32 KB
/
App.tsx
File metadata and controls
55 lines (50 loc) · 1.32 KB
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
50
51
52
53
54
import React from 'react';
import { View, StatusBar } from 'react-native';
import { Provider } from 'react-redux';
import { store } from './src/redux/store';
import RootNavigation from './src/nav';
import { useFonts, Raleway_400Regular, Raleway_600SemiBold, Raleway_800ExtraBold } from '@expo-google-fonts/raleway';
import { Montserrat_600SemiBold, Montserrat_400Regular, Montserrat_500Medium } from '@expo-google-fonts/montserrat';
import { NativeBaseProvider, extendTheme } from 'native-base';
import { fonts } from 'utils/constants';
const theme = extendTheme({
fontConfig: {
Montserrat: {
400: {
normal: fonts.regular,
},
500: {
normal: fonts.medium,
},
600: {
normal: fonts.semiBold,
},
},
},
fonts: {
heading: 'Montserrat',
body: 'Montserrat',
mono: 'Montserrat',
},
});
export default function App() {
const [fontsLoaded] = useFonts({
Raleway_400Regular,
Raleway_600SemiBold,
Raleway_800ExtraBold,
Montserrat_600SemiBold,
Montserrat_400Regular,
Montserrat_500Medium,
});
if (!fontsLoaded) {
return <View />;
}
return (
<NativeBaseProvider theme={theme}>
<Provider store={store}>
<StatusBar barStyle = 'light-content' />
<RootNavigation />
</Provider>
</NativeBaseProvider>
);
}