forked from PSMRI/beneficiary-app-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
98 lines (94 loc) · 1.88 KB
/
index.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import {
MD3LightTheme as DefaultTheme,
PaperProvider,
configureFonts,
} from 'react-native-paper';
import {SafeAreaProvider} from 'react-native-safe-area-context';
const fontConfig = {
regular: {
fontFamily: 'Poppins-Regular',
},
medium: {
fontFamily: 'Poppins-Bold',
},
light: {
fontFamily: 'Poppins-Light',
},
thin: {
fontFamily: 'Poppins-Thin',
},
// Title variants
titleLarge: {
fontFamily: 'Poppins-Bold',
},
titleMedium: {
fontFamily: 'Poppins-Medium',
},
titleSmall: {
fontFamily: 'Poppins-Medium',
},
// Label variants
labelLarge: {
fontFamily: 'Poppins-Regular',
labelMedium: {
fontFamily: 'Poppins-Regular',
},
labelSmall: {
fontFamily: 'Poppins-Regular',
},
// Body variants
bodyLarge: {
fontFamily: 'Poppins-Regular',
},
bodyMedium: {
fontFamily: 'Poppins-Regular',
},
bodySmall: {
fontFamily: 'Poppins-Regular',
},
// Display variants
displayLarge: {
fontFamily: 'Poppins-Light',
},
displayMedium: {
fontFamily: 'Poppins-Light',
},
displaySmall: {
fontFamily: 'Poppins-Light',
},
// Headline variants
headlineLarge: {
fontFamily: 'Poppins-Regular',
},
headlineMedium: {
fontFamily: 'Poppins-Regular',
},
headlineSmall: {
fontFamily: 'Poppins-Regular',
},
},
};
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: '#3C5FDD',
},
fonts: configureFonts({config: fontConfig}),
};
export default function Main() {
return (
<SafeAreaProvider>
<PaperProvider theme={theme}>
<App />
</PaperProvider>
</SafeAreaProvider>
);
}
AppRegistry.registerComponent(appName, () => Main);