-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.js
61 lines (57 loc) · 1.25 KB
/
Main.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
import * as React from "react";
import {
configureFonts,
DefaultTheme,
Provider as PaperProvider,
} from "react-native-paper";
import App from "./src/App";
import { registerRootComponent } from "expo";
import { Provider as StoreProvider } from "react-redux";
import { createStore, applyMiddleware } from "redux";
import store from "./src/store/store";
const fontConfig = {
default: {
regular: {
fontFamily: "sans-serif",
fontWeight: "normal",
},
medium: {
fontFamily: "sans-serif-medium",
fontWeight: "normal",
},
light: {
fontFamily: "sans-serif-light",
fontWeight: "normal",
},
thin: {
fontFamily: "sans-serif-thin",
fontWeight: "normal",
},
},
};
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: "#2962ff",
accent: "#2962ff",
background: "#fff",
surface: "#fff",
disabled: "#e0e0e0",
text: "#000",
placeholder: "#e0e0e0",
backdrop: "#fff",
},
fonts: configureFonts(fontConfig),
};
export default function Main() {
return (
<StoreProvider store={store}>
<PaperProvider theme={theme}>
<App />
</PaperProvider>
</StoreProvider>
);
}
registerRootComponent(Main);