-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.js
More file actions
61 lines (57 loc) · 1.28 KB
/
index.js
File metadata and controls
61 lines (57 loc) · 1.28 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
55
56
57
58
59
60
61
/**
* @format
*/
import "react-native-gesture-handler";
import { AppRegistry } from "react-native";
import App from "./App";
import { name as appName } from "./app.json";
import React from "react";
import {
Provider as PaperProvider,
DarkTheme,
configureFonts
} from "react-native-paper";
import TrackPlayer from "react-native-track-player";
import { StoreProvider } from "easy-peasy";
import store from "./components/misc/store/store";
const fontConfig = {
default: {
regular: {
fontFamily: "CircularStd-Book",
fontWeight: "normal"
},
medium: {
fontFamily: "CircularStd-Medium",
fontWeight: "normal"
},
light: {
fontFamily: "CircularStd-Book",
fontWeight: "normal"
},
thin: {
fontFamily: "CircularStd-Book",
fontWeight: "normal"
}
}
};
const theme = {
...DarkTheme,
fonts: configureFonts(fontConfig),
mode: "exact",
colors: {
...DarkTheme.colors,
primary: "#1d1d1d",
accent: "tomato"
}
};
export default function Main() {
return (
<StoreProvider store={store}>
<PaperProvider theme={theme}>
<App />
</PaperProvider>
</StoreProvider>
);
}
AppRegistry.registerComponent(appName, () => Main);
TrackPlayer.registerPlaybackService(() => require("./service"));