@@ -9,8 +9,55 @@ import { usePlayer } from '@/hooks/usePlayer';
99import { ThemedButton } from '@/components/ThemedButton' ;
1010import { useUserSessionStore } from '@/hooks/useUserSessionStore' ;
1111import { useMatch } from '@/hooks/useMatch' ;
12+ import { useKeepAwake } from 'expo-keep-awake' ;
13+
14+ const styles = StyleSheet . create ( {
15+ container : {
16+ flex : 1 ,
17+ justifyContent : 'space-around' ,
18+ alignItems : 'center' ,
19+ paddingHorizontal : 60 ,
20+ paddingVertical : 20 ,
21+ backgroundColor : Colors . dark . background ,
22+ } ,
23+ title : {
24+ fontSize : 28 ,
25+ fontFamily : 'BarlowCondensedBold' ,
26+ textAlign : 'center' ,
27+ marginBottom : 20 ,
28+ color : Colors . dark . text ,
29+ } ,
30+ message : {
31+ fontSize : 18 ,
32+ textAlign : 'center' ,
33+ color : Colors . dark . text ,
34+ } ,
35+ card : {
36+ width : '80%' ,
37+ padding : 20 ,
38+ borderRadius : 10 ,
39+ backgroundColor : Colors . dark . info ,
40+ shadowColor : Colors . dark . info ,
41+ shadowOffset : { width : 0 , height : 4 } ,
42+ shadowOpacity : 0.2 ,
43+ shadowRadius : 5 ,
44+ elevation : 5 ,
45+ gap : 10 ,
46+ alignItems : 'center' ,
47+ } ,
48+ winnerName : {
49+ fontSize : 24 ,
50+ fontFamily : 'BarlowCondensedBold' ,
51+ color : Colors . dark . text ,
52+ marginBottom : 10 ,
53+ } ,
54+ stats : {
55+ color : Colors . dark . icon ,
56+ } ,
57+ } ) ;
1258
1359export default function End ( ) {
60+ useKeepAwake ( ) ;
1461 const { gameId } = useLocalSearchParams ( ) ;
1562 const { session } = useUserSessionStore ( ) ;
1663
@@ -76,48 +123,3 @@ export default function End() {
76123 </ ThemedView >
77124 ) ;
78125}
79-
80- const styles = StyleSheet . create ( {
81- container : {
82- flex : 1 ,
83- justifyContent : 'space-around' ,
84- alignItems : 'center' ,
85- paddingHorizontal : 60 ,
86- paddingVertical : 20 ,
87- backgroundColor : Colors . dark . background ,
88- } ,
89- title : {
90- fontSize : 28 ,
91- fontWeight : 'bold' ,
92- textAlign : 'center' ,
93- marginBottom : 20 ,
94- color : Colors . dark . text ,
95- } ,
96- message : {
97- fontSize : 18 ,
98- textAlign : 'center' ,
99- color : Colors . dark . text ,
100- } ,
101- card : {
102- width : '80%' ,
103- padding : 20 ,
104- borderRadius : 10 ,
105- backgroundColor : Colors . dark . info ,
106- shadowColor : Colors . dark . info ,
107- shadowOffset : { width : 0 , height : 4 } ,
108- shadowOpacity : 0.2 ,
109- shadowRadius : 5 ,
110- elevation : 5 ,
111- gap : 10 ,
112- alignItems : 'center' ,
113- } ,
114- winnerName : {
115- fontSize : 24 ,
116- fontWeight : 'bold' ,
117- color : Colors . dark . text ,
118- marginBottom : 10 ,
119- } ,
120- stats : {
121- color : Colors . dark . icon ,
122- } ,
123- } ) ;
0 commit comments