-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.js
47 lines (41 loc) · 1.13 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
import * as React from "react";
import { AppRegistry } from "react-native";
import { configureFonts, DefaultTheme, Provider as PaperProvider } from "react-native-paper";
import App from "./src/App";
import Colors from "./src/constants/Colors";
let customFonts = {
"Product_Sans": require("./assets/fonts/Product_Sans_Bold.ttf"),
};
const _fontConfig = {
default: {
regular: {
fontFamily: "Product_Sans", fontWeight: "normal",
},
medium: {
fontFamily: "Product_Sans", fontWeight: "normal",
},
light: {
fontFamily: "Product_Sans", fontWeight: "normal",
},
thin: {
fontFamily: "Product_Sans", fontWeight: "normal",
},
},
};
const fontConfig = {
ios: _fontConfig,
android: _fontConfig,
};
const theme = {
...DefaultTheme, fonts: configureFonts(fontConfig), roundness: 2, version: 3, colors: {
...DefaultTheme.colors, primary: Colors.YELLOW["800"], secondary: Colors.YELLOW["800"], tertiary: "#a1b2c3",
},
};
export default function Main() {
return (
<PaperProvider theme={theme}>
<App />
</PaperProvider>
);
}
AppRegistry.registerComponent("mer", () => Main);