-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomeScreen.js
More file actions
107 lines (97 loc) · 2.64 KB
/
Copy pathHomeScreen.js
File metadata and controls
107 lines (97 loc) · 2.64 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import { StyleSheet, Text, View, SafeAreaView, Image,ScrollView } from "react-native";
import React ,{useContext} from "react";
import FitnessCards from "../components/FitnessCards";
import { FitnessItems } from "../Context";
const HomeScreen = () => {
const {
minutes,
calories,
workout,
} = useContext(FitnessItems);
return (
<ScrollView style={{marginTop:40}}>
<View
style={{
backgroundColor: "#CD853F",
padding: 10,
height: 200,
width: "100%",
}}
>
<Text style={{ color: "white", fontWeight: "bold", fontSize: 18 }}>
HOME WORKOUT
</Text>
<View
style={{
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
marginTop: 20,
}}
>
<View>
<Text
style={{
textAlign: "center",
fontWeight: "bold",
color: "white",
fontSize: 18,
}}
>
{workout}
</Text>
<Text style={{ color: "#D0D0D0", fontSize: 17, marginTop: 6 }}>
WORKOUTS
</Text>
</View>
<View>
<Text
style={{
textAlign: "center",
fontWeight: "bold",
color: "white",
fontSize: 18,
}}
>
{calories}
</Text>
<Text style={{ color: "#D0D0D0", fontSize: 17, marginTop: 6 }}>
KCAL
</Text>
</View>
<View>
<Text
style={{
textAlign: "center",
fontWeight: "bold",
color: "white",
fontSize: 18,
}}
>
{minutes}
</Text>
<Text style={{ color: "#D0D0D0", fontSize: 17, marginTop: 6 }}>
MINS
</Text>
</View>
</View>
<View style={{ justifyContent: "center", alignItems: "center" }}>
<Image
style={{
width: "90%",
height: 120,
marginTop: 20,
borderRadius: 7,
}}
source={{
uri: "https://cdn-images.cure.fit/www-curefit-com/image/upload/c_fill,w_842,ar_1.2,q_auto:eco,dpr_2,f_auto,fl_progressive/image/test/sku-card-widget/gold2.png",
}}
/>
</View>
<FitnessCards/>
</View>
</ScrollView>
);
};
export default HomeScreen;
const styles = StyleSheet.create({});