2020-03-20 11:15:54 +01:00
|
|
|
import "react-native-gesture-handler";
|
2020-03-12 18:14:38 +01:00
|
|
|
import React from "react";
|
|
|
|
import {AppRegistry} from "react-native";
|
2020-03-17 14:55:03 +01:00
|
|
|
import AppContainer from "./AppContainer";
|
2020-03-12 18:14:38 +01:00
|
|
|
import {name as appName} from "./app.json";
|
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();
|
2020-03-14 11:35:35 +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}>
|
2020-03-17 14:55:03 +01:00
|
|
|
<AppContainer />
|
2020-03-16 03:23:03 +01:00
|
|
|
</PersistGate>
|
|
|
|
</ReduxProvider>
|
2020-03-12 18:14:38 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
AppRegistry.registerComponent(appName, () => Main);
|