-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
34 lines (23 loc) · 810 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
33
/**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import React from 'react';
import { Provider } from "react-redux";
//import { store, persistor } from "./redux/store";
//import { store, persistor } from './store.configureStore'
import configureStore from "./store";
import { useSelector, useDispatch } from 'react-redux';
import { PersistGate } from "redux-persist/integration/react";
import { persistStore } from "redux-persist";
import { addProduct } from "./action";
const RNRedux = () =>(
<Provider store={configureStore().store}>
<PersistGate persistor={configureStore().persist}>
<App/>
</PersistGate>
</Provider>
)
AppRegistry.registerComponent(appName, () => RNRedux);