-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomePage.js
46 lines (42 loc) · 1.13 KB
/
HomePage.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
import React from 'react';
import { View, Text, StyleSheet, TouchableOpacity, ScrollView, } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
const AddModal = (props) => {
return (
<ScrollView
contentContainerStyle={{flexGrow: 1}}
keyboardShouldPersistTaps='handled'
>
<View style={styles.tasksWrapper}>
<View style={styles.sectionTitleWrapper}>
<Text style={styles.sectionTitle}>To Do List</Text>
<TouchableOpacity style={styles.sectionTitleRight} onPress={() => props.setMenuModal(true)}>
<Text><Icon style={styles.sectionTitle} name="menu"/></Text>
</TouchableOpacity>
</View>
{
props.renderTaskList()
}
</View>
</ScrollView>
)
}
const styles = StyleSheet.create({
tasksWrapper: {
paddingTop: 60,
paddingHorizontal: 20,
},
sectionTitleWrapper: {
flexDirection: 'row',
justifyContent: 'space-between',
marginBottom: 20,
},
sectionTitle: {
fontSize: 25,
fontWeight: 'bold'
},
sectionTitleRight: {
marginTop: 5,
},
});
export default AddModal;