Browse Source

Cambios para que funcione el mapa al ver citas pendientes

gilberto.cancel 3 years ago
parent
commit
5994e01e51
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      screens/main/Home_page.js

+ 4
- 3
screens/main/Home_page.js View File

80
           Time:'',
80
           Time:'',
81
           i_token:'',
81
           i_token:'',
82
           u_token:'',
82
           u_token:'',
83
+          Pin: {},
83
           ...docSnap.data()
84
           ...docSnap.data()
84
         };
85
         };
85
       });
86
       });
143
         renderItem = {({item}) => (
144
         renderItem = {({item}) => (
144
         <TouchableOpacity
145
         <TouchableOpacity
145
         onPress={async () => {
146
         onPress={async () => {
146
-          console.log("item._id, home, client", item._id)
147
-          navigation.navigate('Cita',{tag: item})
147
+          console.log("item._id, home, client", item.Pin)
148
+          navigation.navigate('Cita',{tag: item, Pin: item})
148
         }}
149
         }}
149
         >
150
         >
150
           <List.Item
151
           <List.Item
216
           <TouchableOpacity
217
           <TouchableOpacity
217
           onPress={async () => {
218
           onPress={async () => {
218
             console.log("item._id, home, interpreter", item._id)
219
             console.log("item._id, home, interpreter", item._id)
219
-            navigation.navigate('Cita',{tag: item})
220
+            navigation.navigate('Cita',{tag: item, Pin: item})
220
           }}
221
           }}
221
           >
222
           >
222
             <List.Item
223
             <List.Item