2020-03-12 18:14:38 +01:00
|
|
|
import React from "react";
|
|
|
|
import {AppRegistry} from "react-native";
|
|
|
|
import App from "./App";
|
|
|
|
import {name as appName} from "./app.json";
|
2020-03-14 11:35:35 +01:00
|
|
|
import { DarkTheme, Provider } from "react-native-paper";
|
2020-03-16 03:23:03 +01:00
|
|
|
import { Provider as ReduxProvider } from "react-redux";
|
|
|
|
import { PersistGate } from "redux-persist/integration/react";
|
|
|
|
|
|
|
|
import configureStore from "./configureStore";
|
|
|
|
const { store, persistor } = configureStore();
|
|
|
|
console.log(store);
|
|
|
|
console.log(persistor);
|
2020-03-14 11:35:35 +01:00
|
|
|
|
|
|
|
const theme = {
|
|
|
|
...DarkTheme,
|
|
|
|
mode: "exact",
|
|
|
|
colors: {
|
|
|
|
...DarkTheme.colors,
|
|
|
|
primary: "#e91e63",
|
|
|
|
accent: "#3f51b5",
|
|
|
|
}
|
|
|
|
};
|
2020-03-07 09:23:17 +01:00
|
|
|
|
2020-03-12 18:14:38 +01:00
|
|
|
export default function Main() {
|
|
|
|
return (
|
2020-03-16 03:23:03 +01:00
|
|
|
<ReduxProvider store={store}>
|
|
|
|
<PersistGate persistor={persistor}>
|
|
|
|
<Provider theme={theme}>
|
|
|
|
<App />
|
|
|
|
</Provider>
|
|
|
|
</PersistGate>
|
|
|
|
</ReduxProvider>
|
2020-03-12 18:14:38 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
AppRegistry.registerComponent(appName, () => Main);
|