forked from imtoo/meetup-iOS-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
47 lines (43 loc) · 1.09 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
// @flow
import React from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import ChartView from './ChartView';
const xValues = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
const yValues = [20.0, 4.0, 6.0, 3.0, 12.0, 16.0, 4.0, 18.0, 2.0, 4.0, 5.0, 4.0];
const App = () => (
<View style={styles.container}>
<View style={styles.navigation}>
<Text style={styles.navigationText}>Navigation Bar</Text>
</View>
<ChartView
xValues={xValues}
yValues={yValues}
/>
</View>
);
const styles = StyleSheet.create({
container: {
paddingTop: 20,
display: 'flex',
justifyContent: 'center',
backgroundColor: '#F5FCFF',
alignItems: 'stretch',
flexDirection: 'column',
flex: 1,
},
navigation: {
paddingLeft: 8,
paddingRight: 8,
backgroundColor: 'black',
height: 40,
justifyContent: 'center',
},
navigationText: {
color: 'white',
},
});
export default App;