Repository navigation
Expand file tree
/
Copy pathToDoList.js
More file actions
148 lines (134 loc) · 5.03 KB
/
Copy pathToDoList.js
File metadata and controls
148 lines (134 loc) · 5.03 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import React, { Component } from 'react';
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
class ToDoList extends Component {
constructor(props) {
super(props);
this.state = {
show : false
}
this.handleshow = this.handleshow.bind(this);
}
handleshow() {
this.setState({ show: !this.state.show });
}
render() {
return (
<View style={styles.container}>
<View style={styles.RectangleLogo}>
<Text
style={{ fontSize: 30, lineHeight: 50, letterSpacing: 15, paddingTop: 0, color: '#ffffff', textAlign: "center" }}>
MEMO-RY
</Text>
</View>
<View >
<View>
<TouchableOpacity style={styles.button}>
<Text style={styles.titleText} activeOpacity={0.5}>To Do List</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View>
<TouchableOpacity onPress={() => alert('Places Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>7:00: Take Medication</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity onPress={() => alert('Places Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>7:30: Brush Teeth</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity onPress={() => alert('All Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>11:00: DR. Appointment</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity onPress={() => alert('All Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>1:30: Lunch with Robyn</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity onPress={() => alert('All Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>3:00: Visit Family</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity onPress={() => alert('All Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>5:00: Gardening Club</Text>
</TouchableOpacity>
</View>
</View>
<View >
<View >
<TouchableOpacity onPress={() => alert('All Selected')} style={styles.button}>
<Text style={styles.instructions} activeOpacity={0.5}>9:00: Medication</Text>
</TouchableOpacity>
</View>
</View>
</View>
);
}
} export default ToDoList;
const styles = StyleSheet.create({
// General layout
container: {
flex: 1,
flexDirection: 'column',
backgroundColor: '#E3EAEB',
alignItems: 'center',
justifyContent: 'space-evenly',
alignItems: 'stretch',
},
// Style for text (color, size, margins -- left justifies)
instructions: {
color: 'black',
fontSize: 30,
marginHorizontal: 15,
marginLeft: 20,
//justifyContent: 'flex-start',
//letterSpacing: 10,
},
noShow: {
color: '#ffffff',
fontSize: 30,
marginHorizontal: 15,
marginLeft: 20,
//justifyContent: 'flex-start',
//letterSpacing: 10,
},
// Style for button (organizes items in center of row, background color, dimensions)
button: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#E3EAEB',
height: 40,
width: 400,
//borderRadius: 5,
},
//Title
titleText: {
fontSize: 40,
fontWeight: 'bold',
//textAlign: 'center',
color: 'black',
marginLeft: 10,
//marginTop: 10,
},
RectangleLogo: {
marginTop: 40,
width: 400,
height: 50,
backgroundColor: '#329ba8',
},
});