-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
29 lines (24 loc) · 735 Bytes
/
Copy pathApp.js
File metadata and controls
29 lines (24 loc) · 735 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
import React from 'react';
import {YellowBox} from 'react-native';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import AppReducer from './src/reducers';
import { AppNavigator, middleware } from './src/navigators/AppNavigator';
import thunk from 'redux-thunk'
const store = createStore(
AppReducer,
applyMiddleware(middleware, thunk),
);
export default class App extends React.Component {
constructor() {
super();
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
}
render() {
return (
<Provider store={store}>
<AppNavigator />
</Provider>
);
}
}