-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (35 loc) · 912 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
33
34
35
36
37
38
39
import React from 'react';
import { Container, Content } from 'native-base';
import { StyleSheet, Text, View } from 'react-native';
import AppFooterContainer from './src/containers/AppFooterContainer.js';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import reducers from './src/reducers';
import { MODES } from './src/constants';
const intialState = {
mode: MODES.ARTICLES
};
const store = createStore(reducers, intialState)
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
}
});
const App = () => (
<Provider store={store}>
<Container>
<Content>
<View style={styles.container}>
<Text>
Hello world!
</Text>
</View>
</Content>
<AppFooterContainer/>
</Container>
</Provider>
)
export default App;