-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
26 lines (24 loc) · 777 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
import React from 'react';
import { AppRegistry,AsyncStorage } from 'react-native';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import {logger} from 'redux-logger';
import AppReducer from './src/reducers';
import { AppNavigator, middleware } from './src/navigators/AppNavigator';
// add logger below to view redux Action,State Log after thunk.
const store = createStore(AppReducer, applyMiddleware(middleware,thunk, logger));
//const store = null;
export default class App extends React.Component {
constructor() {
super();
console.reportErrorsAsExceptions = false;
}
render() {
return (
<Provider store={store}>
<AppNavigator />
</Provider>
);
}
}