forked from keepping/react-native-living
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
46 lines (34 loc) · 812 Bytes
/
App.js
File metadata and controls
46 lines (34 loc) · 812 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Created by buhe on 2016/10/18.
*/
import React, {
Component,
} from 'react';
import {
View
} from 'react-native';
import Main from './main';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { Provider, connect } from 'react-redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import reducers from './reducers';
const logger = createLogger();
const middleware = [thunk, logger];
const store = compose(
applyMiddleware(...middleware)
)(createStore)(reducers);
class App extends Component {
constructor() {
super();
//Umeng.startWithAppkey('55894b6d67e58e66c5000d6d');
}
render() {
return (
<Provider store={store}>
<Main />
</Provider>
);
}
}
export default App;