-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
29 lines (26 loc) · 788 Bytes
/
App.jsx
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
import 'react-native-gesture-handler';
import React from 'react';
import { Provider } from 'react-redux';
import {
compose,
legacy_createStore as createStore,
applyMiddleware,
} from 'redux';
import { createEpicMiddleware } from 'redux-most';
import NavigationContainer from './src/navigation/NavigationContainer';
import appEpic from './src/store/app.epics';
import appReducer from './src/store/app.reducer';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const epicMiddleware = createEpicMiddleware(appEpic);
export const store = createStore(
appReducer,
composeEnhancers(applyMiddleware(epicMiddleware)),
);
function App() {
return (
<Provider store={store}>
<NavigationContainer />
</Provider>
);
}
export default App;