-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
212 lines (178 loc) · 5.18 KB
/
App.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View, Image, ScrollView } from "react-native";
import { SimpleLineIcons } from "@expo/vector-icons";
import { Feather } from "@expo/vector-icons";
export default function App() {
return (
<View style={styles.container}>
<ScrollView>
<View style={styles.Navbar}>
<SimpleLineIcons name="menu" size={30} color="black" />
<Feather name="search" size={35} color="black" />
</View>
<View style={styles.mainbox}>
<Image
style={styles.Oneimage}
source={require("./assets/logocare.jpg")}
/>
<View style={styles.BoxOne}>
<View style={styles.Text}>
<Text style={styles.HeadingText}>Banana Tree</Text>
<Text style={styles.Infotext}>
Banyan trees are mostly seen in different regions of the country
and are the national . his huge type of tree has extensive
branches
</Text>
</View>
<Image
style={styles.InsideImage}
source={require("./assets/bana.jpg")}
/>
</View>
<View style={styles.BoxOne}>
<View style={styles.Text}>
<Text style={styles.HeadingText}>Neem Tree</Text>
<Text style={styles.Infotext}>
The most common and popular tree of probably every household is
the neem tree that has bright leaves and goes up to the height
of 100 feet.
</Text>
</View>
<Image
style={styles.InsideImage}
source={require("./assets/neemtree.jpg")}
/>
</View>
<View style={styles.BoxOne}>
<View style={styles.Text}>
<Text style={styles.HeadingText}>Peepal Tree</Text>
<Text style={styles.Infotext}>
It is a fast-growing tree having heart-shaped leaves with a
large crown. It sheds its leaves in the month of March and
April.
</Text>
</View>
<Image
style={styles.InsideImage}
source={require("./assets/peelpaltree.jpg")}
/>
</View>
<View style={styles.BoxOne}>
<View style={styles.Text}>
<Text style={styles.HeadingText}> Aloe VeraTree</Text>
<Text style={styles.Infotext}>
It is a fast-growing tree having heart-shaped leaves with a
large crown. It sheds its leaves in the month of March and
April.
</Text>
</View>
<Image
style={styles.InsideImage}
source={require("./assets/peelpaltree.jpg")}
/>
</View>
<View style={styles.BoxOne}>
<View style={styles.Text}>
<Text style={styles.HeadingText}> Tulsi Tree</Text>
<Text style={styles.Infotext}>
Tulsi plant is considered as a holy and religious plant in
India. Height reaches about 75 cm to 90 cm. The leaves are round
oval shaped which contain essential oils.
</Text>
</View>
<Image
style={styles.InsideImage}
source={require("./assets/peelpaltree.jpg")}
/>
</View>
</View>
<Text style={styles.HeadingOnecen}>Our Section</Text>
<View style={styles.Boxing}>
<Image
style={styles.infoimage}
source={require("./assets/donatetow.jpg")}
/>
<Image
style={styles.infoimage}
source={require("./assets/cup.jpg")}
/>
</View>
</ScrollView>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#e8e8e8",
},
Navbar: {
flexDirection: "row",
alignItems: "center",
justifyContent: "space-around",
width: "100%",
height: 60,
backgroundColor: "#80BFFF",
marginTop: 35,
},
Oneimage: {
width: "80%",
height: 150,
marginTop: 30,
borderRadius: 10,
},
mainbox: {
flexDirection: "column",
alignItems: "center",
},
BoxOne: {
width: "90%",
height: 150,
backgroundColor: "#fff",
marginTop: 40,
borderRadius: 10,
flexDirection: "row",
alignItems: "center",
justifyContent: "space-around",
padding: 2,
},
InsideImage: {
width: "30%",
height: 120,
borderRadius: 6,
},
Text: {
flexDirection: "column",
width: "60%",
height: 130,
padding: 4,
},
HeadingText: {
fontWeight: "bold",
fontSize: 20,
},
Infotext: {
marginTop: 5,
},
Boxing: {
width: "100%",
height: 170,
marginTop: 10,
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
},
HeadingOnecen: {
fontWeight: "bold",
fontSize: 20,
textAlign: "center",
marginTop: 40,
},
infoimage: {
width: "35%",
height: 130,
backgroundColor: "#333",
borderRadius: 5,
},
});