-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.android.js
52 lines (43 loc) · 1.07 KB
/
index.android.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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
ScrollView
} from 'react-native';
import Box from './Box';
export default class milestone extends Component {
render() {
return (
<View>
<View>
<Text style={{ alignSelf: 'center', fontSize: 22, marginTop: 10, marginBottom: 10 }}> Timeline < /Text>
</View>
<ScrollView>
<Box start>
<Text>MileStone 1</Text>
<Text>Info about the first MileStone</Text>
<Text>Task 1</Text>
</Box>
<Box>
<Text>Any image</Text>
<Image style = {{width: 200, height: 100}} source = { require('./cat.jpeg') } />
</Box>
<Box end>
<Text>MileStone 2</Text>
<Text>Info about the second MileStone</Text>
<Text>Task 2</Text>
</Box>
</ScrollView>
</View>
);
}
}
AppRegistry.registerComponent('milestone', () => milestone);