forked from binu-alexander/VachanAppReact
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
executable file
·32 lines (28 loc) · 908 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-native-gesture-handler";
import React, { Component } from "react";
import createSagaMiddleware from "redux-saga";
import { AppRegistry } from "react-native";
import { Provider } from "react-redux";
import { persistStore } from "redux-persist";
import { PersistGate } from "redux-persist/es/integration/react";
import App from "./App";
import rootSaga from "./app/store/saga/";
import { typography } from "./app/utils/typography";
import store from "./app/store/";
import MainProvider from "./app/context/MainProvider";
const persistor = persistStore(store);
typography();
class RNRedux extends Component {
render() {
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<MainProvider>
<App />
</MainProvider>
</PersistGate>
</Provider>
);
}
}
AppRegistry.registerComponent("VachanGo", () => RNRedux);