forked from jmancherje/get-your-steps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
63 lines (59 loc) · 1.33 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import React from 'react';
import {
Container,
Header,
Button,
Body,
Title,
Content,
Text,
Footer,
FooterTab,
} from 'native-base';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'remote-redux-devtools';
import Reducer from './src/reducers';
import StepsContainer from './src/containers/StepsContainer';
import LocationContainer from './src/containers/LocationContainer';
// Store configuration
const store = createStore(Reducer, composeWithDevTools(
applyMiddleware(thunk),
));
class AppWrapper extends React.Component {
render() {
return (
<Container>
<Header>
<Body>
<Title>Steps</Title>
</Body>
</Header>
<Content>
<LocationContainer />
<StepsContainer />
</Content>
<Footer>
<Footer>
<FooterTab>
<Button full>
<Text>Hi</Text>
</Button>
</FooterTab>
</Footer>
</Footer>
</Container>
);
}
}
// eslint-disable-next-line react/no-multi-comp
export default class App extends React.Component {
render() {
return (
<Provider store={ store }>
<AppWrapper />
</Provider>
);
}
}