-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReviews.js
70 lines (67 loc) · 1.63 KB
/
Reviews.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
import React, { useState } from 'react';
import { StyleSheet, Text, ScrollView } from 'react-native';
import ReviewItem from '../components/ReviewItem';
function Reviews(props) {
const [data, setData] = useState([
{
username: 'Andrew',
text: 'Very close to Campden market.',
date: 'May 30, 2019',
},
{
username: 'Paul',
text: 'Convenient parking, had no issues.',
date: 'May 27, 2019',
},
{
username: 'Alan',
text:
'Great space and bang in the middle of Camden. With the extreme lack of parking in Camden this is fantastic find.',
date: 'May 22, 2019',
},
{
username: 'Sean',
text: 'Will definitely be parking here again.',
date: 'Apr 24, 2019',
},
]);
return (
<ScrollView contentContainerStyle={styles.container}>
<Text style={styles.reviews}>Reviews</Text>
<Text style={styles.loremIpsum}>906 Peg Shop St. Franklyn, NY 11209</Text>
{data.map((d) => (
<ReviewItem
key={d.username}
username={d.username}
text={d.text}
date={d.date}
/>
))}
</ScrollView>
);
}
const styles = StyleSheet.create({
container: {
// flex: 1,
// padding: 20,
backgroundColor: '#fff',
},
reviews: {
fontFamily: 'roboto-700',
color: 'rgba(11,64,148,1)',
fontSize: 28,
marginTop: 30,
// marginLeft: 20,
paddingHorizontal: 20,
},
loremIpsum: {
fontFamily: 'roboto-500',
color: 'rgba(11,64,148,1)',
fontSize: 19,
opacity: 0.75,
marginTop: 13,
marginBottom: 40,
paddingHorizontal: 20,
},
});
export default Reviews;