Browse Source

Cambios para que funcione el mapa al ver citas pendientes

gilberto.cancel 2 years ago
parent
commit
6ae0abfd2c
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      screens/main/Cita.js

+ 4
- 2
screens/main/Cita.js View File

@@ -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
+