-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
32 lines (28 loc) · 942 Bytes
/
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
import React from "react";
import { registerRootComponent } from "expo";
import { DefaultTheme, Provider as PaperProvider } from "react-native-paper";
import App from "./src/App";
import customTheme from "./src/utils/theme";
import PersistentStore from "./src/redux/PersistentStore";
import { LogBox } from "react-native";
const theme = {
...DefaultTheme,
...customTheme
};
const Main = () => {
LogBox.ignoreLogs([
"Setting a timer",
"Warning: componentWillReceiveProps has been renamed"
]);
return (
<PaperProvider theme={theme}>
<PersistentStore>
<App />
</PersistentStore>
</PaperProvider>
);
};
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in the Expo client or in a native build,
// the environment is set up appropriately
registerRootComponent(Main);