-
Notifications
You must be signed in to change notification settings - Fork 0
/
Todos.js
46 lines (43 loc) · 992 Bytes
/
Todos.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 { StyleSheet, Text, View, Button, TouchableOpacity } from "react-native";
export default function Todos() {
return (
<View style={styles.todoContainer}>
<TouchableOpacity style={styles.todo}>
<View>
<Text style={styles.mainText}>This is to do </Text>
<Text>Pending</Text>
</View>
</TouchableOpacity>
<TouchableOpacity
style={{
backgroundColor: "#0ff",
margin: 10,
padding: 10,
}}
>
<Text>X</Text>
</TouchableOpacity>
</View>
);
}
const styles = StyleSheet.create({
todoContainer: {
margin: 10,
borderBottomWidth: 0.5,
borderBottomColor: "#28334AFF",
flex: 1,
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
},
todo: {
width: "100%",
backgroundColor: "#fff",
paddingHorizontal: 10,
},
mainText: {
paddingBottom: 2,
fontSize: 22,
},
});