-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.web.js
35 lines (30 loc) · 896 Bytes
/
index.web.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
34
35
import React from 'react';
import {AppRegistry} from 'react-native';
import {BrowserRouter as Router} from 'react-router-dom';
import {Provider} from 'react-redux';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {ToastContainer} from 'react-toastify';
import 'react-toastify/dist/ReactToastify.min.css';
import App from './web/App';
import {name as appName} from './app.json';
import {store} from './shared/global';
const Wrapper = () => {
return (
<Provider store={store}>
<SafeAreaProvider>
<Router>
<App />
</Router>
<ToastContainer position="bottom-left" />
</SafeAreaProvider>
</Provider>
);
};
if (module.hot) {
module.hot.accept();
}
AppRegistry.registerComponent(appName, () => Wrapper);
AppRegistry.runApplication(appName, {
initialProps: {},
rootTag: document.getElementById('app-root'),
});