-
Notifications
You must be signed in to change notification settings - Fork 0
/
POIDetail.js
45 lines (44 loc) · 1.16 KB
/
POIDetail.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
import React from "react";
import {View, Text, StyleSheet, Button} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
paddingBottom: 42,
backgroundColor: "#FFFFFF"
},
itemTitle: {
fontSize: 18,
fontWeight: 'bold',
padding: 10,
color: 'red'
},
itemSub: {
fontSize: 16,
fontWeight: 'normal',
padding: 10,
marginBottom: 10,
color: 'tomato',
},
separator: {
flex: 1,
borderWidth: 1,
borderColor: 'grey'
}
});
const POIDetail = ({data, callBack}) => {
return(
<View style = {styles.container}>
<Text style = {styles.itemTitle}>{data.name}</Text>
<Text style = {styles.itemSub}>{data.address}</Text>
<View backgroundColor = 'tomato' padding = {5}>
<Button
onPress={callBack}
title="Show route"
color="#841584"
accessibilityLabel="This helps to generate route from user location"
/>
</View>
</View>
)
}
export default POIDetail;