-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.js
32 lines (29 loc) · 803 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
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Application from './src/application'
import { Provider } from "react-redux";
import { createStore, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
import itemApp from './src/reducers'
import mySaga from './src/sagas'
const sagaMiddleware = createSagaMiddleware()
const store = createStore(itemApp,
applyMiddleware(sagaMiddleware));
sagaMiddleware.run(mySaga);
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<Application />
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});