-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (30 loc) · 875 Bytes
/
App.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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import Navigator,{middleware} from './src/navigation';
import {Root} from 'native-base';
import {createStore, applyMiddleware, compose} from 'redux';
import createSagaMiddleware from 'redux-saga';
import {Provider} from 'react-redux';
import rootSaga from './src/sagas/rootSagas';
import allReducers from './src/reducers/rootReducers';
const sagaMiddleware = createSagaMiddleware();
console.disableYellowBox = true;
const store = createStore(allReducers, compose(applyMiddleware(middleware, sagaMiddleware)));
sagaMiddleware.run(rootSaga);
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<Root>
<Navigator/>
</Root>
</Provider>
)
}
}