-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (23 loc) · 768 Bytes
/
index.js
File metadata and controls
25 lines (23 loc) · 768 Bytes
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
import React from 'react';
import {AppRegistry} from 'react-native';
import Router from './Router';
import {name as appName} from './app.json';
import {Provider} from 'react-redux';
import {PersistGate} from 'redux-persist/integration/react';
import storeWithPersistor from './src/redux/Store';
import {Root} from 'native-base';
import {SocketProvider} from './src/context/SocketProvider';
const RouterRedux = () => {
return (
<Root>
<SocketProvider>
<Provider store={storeWithPersistor.store}>
<PersistGate loading={null} persistor={storeWithPersistor.persistor}>
<Router />
</PersistGate>
</Provider>
</SocketProvider>
</Root>
);
};
AppRegistry.registerComponent(appName, () => RouterRedux);