sonzai/index.js

23 lines
642 B
JavaScript
Raw Permalink Normal View History

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