-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tickets.tsx
92 lines (87 loc) · 2.28 KB
/
Tickets.tsx
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
import {
StyleSheet,
View,
Text,
Platform,
StatusBar,
Button,
TextInput,
Dimensions,
} from "react-native";
import {
ScrollView,
TouchableHighlight,
TouchableOpacity,
TouchableWithoutFeedback,
} from "react-native-gesture-handler";
import constants from "../../constants";
import { GlassyBox } from "../Components/GlassyBox/GlassyBox";
import { Navbar } from "../Components/Navbar/Navbar";
import Ionicons from "react-native-vector-icons/Ionicons";
import { PartyCard } from "../Components/PartyCard/PartyCard";
import { useEffect, useState } from "react";
import { HorizontalSeparator } from "../Components/HorizontalSeparator/HorizontalSeparetor";
export const Tickets = ({ navigation }) => {
return (
<View style={styles.container}>
<Navbar navigation={navigation} />
<ScrollView style={styles.scrollView}>
<HorizontalSeparator word={"Attivi"} />
<View style={{ height: constants.spacing.standard }} />
<PartyCard
description={{
creator: "Tommaso",
participants: 3000,
street: "Terni, Via cavour 41",
date: "10/10/22 alle 19:30",
options: [
{
price: 20,
name: "Prevendita",
},
{
price: 40,
name: "Tavolo",
},
],
}}
/>
<HorizontalSeparator word={"Scaduti"} />
<View style={{ height: constants.spacing.standard }} />
<PartyCard
description={{
creator: "Tommaso",
participants: 3000,
street: "Terni, Via cavour 41",
date: "10/10/22 alle 19:30",
expired: true,
}}
/>
<View style={styles.spacing}></View>
</ScrollView>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: constants.colors.background,
},
scrollView: {
width: "100%",
padding: constants.spacing.standard,
},
separator: {
height: 2,
flex: 1,
alignSelf: "center",
borderColor: "#7e7e7e",
borderTopWidth: 1,
borderStyle: "dashed",
marginBottom: 10,
},
// only needed to create a margin on top of the bottomNavigationBar
spacing: {
height: 100,
},
});