From 299cbcab0a5462f316622378d80202fbd2cc58e3 Mon Sep 17 00:00:00 2001 From: Cron1cle <118773725+Cron1cle@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:13:53 +0200 Subject: [PATCH] updated package and added horizontal scrollview --- app/participant.tsx | 29 +++++++++++++++++++++++---- app/stackStyles/participantStyles.tsx | 26 +++++++++++++++--------- package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 46 insertions(+), 19 deletions(-) diff --git a/app/participant.tsx b/app/participant.tsx index d7a56be..2536ed2 100644 --- a/app/participant.tsx +++ b/app/participant.tsx @@ -1,11 +1,19 @@ -import { View, Image, Text } from "react-native"; +import { View, Image, Text, TouchableOpacity } from "react-native"; import styles from "@/app/stackStyles/participantStyles"; +import Ionicons from "@expo/vector-icons/Ionicons"; +import { router } from "expo-router"; +import { + ScrollView, + GestureHandlerRootView, +} from "react-native-gesture-handler"; export default function ParticipantScreen() { return ( - - + Calvin Ogara + router.back()}> + + Single @@ -22,7 +30,20 @@ export default function ParticipantScreen() { Auftritte: + + + {[...Array(5)].map((show, index) => ( + + ))} + - + ); } diff --git a/app/stackStyles/participantStyles.tsx b/app/stackStyles/participantStyles.tsx index b38c736..7a56628 100644 --- a/app/stackStyles/participantStyles.tsx +++ b/app/stackStyles/participantStyles.tsx @@ -1,24 +1,22 @@ -import { StyleSheet } from "react-native"; +import ShowCard from "@/components/ui/ShowCard"; +import { StyleSheet, Dimensions } from "react-native"; const styles = StyleSheet.create({ mainContainer: { flex: 1, backgroundColor: "hsl(221, 39%, 12%)", }, - handleBar: { - backgroundColor: "white", - padding: 3, - alignSelf: "center", - width: 50, - borderRadius: 10, - marginVertical: 20, + closeIcon: { + position: "absolute", + top: Dimensions.get("window").height * 0.077, + right: 30, }, participantName: { color: "white", fontSize: 24, fontWeight: "600", textAlign: "center", - marginVertical: 10, + marginTop: Dimensions.get("window").height * 0.075, }, participantImage: { width: "100%", @@ -35,6 +33,7 @@ const styles = StyleSheet.create({ justifyContent: "center", alignItems: "center", marginBottom: 15, + marginTop: 5, }, participantInfo: { color: "hsl(0, 0%, 80%)", @@ -61,7 +60,14 @@ const styles = StyleSheet.create({ fontSize: 16, fontWeight: "600", color: "hsl(0, 0%, 80%)", - marginTop: 154, + marginTop: 15, + }, + showContainer: { + width: 120, + height: 180, + backgroundColor: "hsl(336, 79%, 63%)", + borderRadius: 10, + marginRight: 15, }, }); diff --git a/package-lock.json b/package-lock.json index 94e3576..a120d34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@babel/core": "^7.25.2", - "@types/react": "^19.1.14", + "@types/react": "~19.1.10", "eslint": "^9.25.0", "eslint-config-expo": "~10.0.0", "typescript": "~5.9.2" @@ -3681,9 +3681,9 @@ } }, "node_modules/@types/react": { - "version": "19.2.0", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.0.tgz", - "integrity": "sha512-1LOH8xovvsKsCBq1wnT4ntDUdCJKmnEakhsuoUSy6ExlHCkGP2hqnatagYTgFk6oeL0VU31u7SNjunPN+GchtA==", + "version": "19.1.17", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.17.tgz", + "integrity": "sha512-Qec1E3mhALmaspIrhWt9jkQMNdw6bReVu64mjvhbhq2NFPftLPVr+l1SZgmw/66WwBNpDh7ao5AT6gF5v41PFA==", "devOptional": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 661b640..4e0990c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "@babel/core": "^7.25.2", - "@types/react": "^19.1.14", + "@types/react": "~19.1.10", "eslint": "^9.25.0", "eslint-config-expo": "~10.0.0", "typescript": "~5.9.2"