-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
87 lines (84 loc) · 1.68 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
import * as React from "react";
import { registerRootComponent } from "expo";
import {
configureFonts,
DefaultTheme,
Provider as PaperProvider,
} from "react-native-paper";
import App from "./App";
const fontConfig = {
web: {
regular: {
fontFamily: "Poppins",
fontWeight: "normal",
},
medium: {
fontFamily: "Poppins",
fontWeight: "normal",
},
light: {
fontFamily: "Poppins",
fontWeight: "normal",
},
thin: {
fontFamily: "Poppins",
fontWeight: "normal",
},
},
ios: {
regular: {
fontFamily: "Poppins",
fontWeight: "normal",
},
medium: {
fontFamily: "Poppins",
fontWeight: "normal",
},
light: {
fontFamily: "Poppins",
fontWeight: "normal",
},
thin: {
fontFamily: "Poppins",
fontWeight: "normal",
},
},
android: {
regular: {
fontFamily: "Poppins",
fontWeight: "normal",
},
medium: {
fontFamily: "Poppins",
fontWeight: "normal",
},
light: {
fontFamily: "Poppins",
fontWeight: "normal",
},
thin: {
fontFamily: "Poppins",
fontWeight: "normal",
},
},
};
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
text: "#ffffff",
accent: "#f1c40f",
},
fonts: configureFonts(fontConfig),
};
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
export default function Main() {
return (
<PaperProvider theme={theme}>
<App />
</PaperProvider>
);
}
registerRootComponent(App);