|
@@ -53,6 +53,7 @@ export function Cita({route, navigation}) {
|
53
|
53
|
const dimensions = Dimensions.get('window');
|
54
|
54
|
const screenWidth = dimensions.width;
|
55
|
55
|
|
|
56
|
+ const Pin = route.params.Pin;
|
56
|
57
|
|
57
|
58
|
return (
|
58
|
59
|
<ImageBackground style={styles.stdcontainer} source={require('../../assets/yellow-white.jpg')}>
|
|
@@ -79,7 +80,7 @@ export function Cita({route, navigation}) {
|
79
|
80
|
/>
|
80
|
81
|
<Button
|
81
|
82
|
title ='Ver mapa'
|
82
|
|
- onPress= {() => navigation.navigate('Map')}
|
|
83
|
+ onPress= {() => navigation.navigate('Map', {View_Only: true, Pin: Pin})}
|
83
|
84
|
/>
|
84
|
85
|
<Button
|
85
|
86
|
title ='Logout'
|
|
@@ -95,4 +96,5 @@ const mapStateToProps = (store) => ({
|
95
|
96
|
})
|
96
|
97
|
const mapDispatchProps = (dispatch) => bindActionCreators({fetchUser}, dispatch);
|
97
|
98
|
|
98
|
|
-export default connect(mapStateToProps, mapDispatchProps)(Cita);
|
|
99
|
+export default connect(mapStateToProps, mapDispatchProps)(Cita);
|
|
100
|
+
|