-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (32 loc) · 873 Bytes
/
App.js
File metadata and controls
35 lines (32 loc) · 873 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
import {styles} from './src/styles/style';
import Header from './src/components/common/Header';
import {Provider} from 'react-redux';
import {createStore, compose, applyMiddleware} from 'redux';
import reducers from './src/reducers/index';
import TaskList from './src/components/Home/TaskList';
import thunk from 'redux-thunk';
import logger from 'redux-logger';
export default class App extends Component {
render() {
return (
<Provider store={createStore(reducers,compose(applyMiddleware(thunk, logger)))}>
<View>
<Header style={styles.container} title={"Home"}/>
<TaskList />
</View>
</Provider>
);
}
}