Преглед на файлове

Arreglo de entrega de fecha

gilberto.cancel преди 3 години
родител
ревизия
41f4e392c1
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 8
    2
      screens/main/Calendar.js

+ 8
- 2
screens/main/Calendar.js Целия файл

@@ -27,16 +27,17 @@ export default class Calendario extends Component {
27 27
     this.setState({
28 28
       selectedStartDate: date,
29 29
     });
30
+    console.log(date)
30 31
     
31 32
     if(this.state.markedDates[date.dateString] != undefined){
32 33
       if(this.state.markedDates[date.dateString].selected == true){
33 34
         if(this.state.mapflag == false){
34
-          this.props.navigation.navigate('StateTime', {Appointment: date._d, int_id : this.state.interpreter_id, 
35
+          this.props.navigation.navigate('StateTime', {Day: date.day, Month: date.month, int_id : this.state.interpreter_id, 
35 36
             Flag: this.state.mapflag, I_Token: this.state.i_token, U_Token: this.state.u_token
36 37
             ,Username: this.state.username, I_Username: this.state.I_username});
37 38
         }
38 39
         else{
39
-          this.props.navigation.navigate('Map', {Appointment: date._d, int_id : this.state.interpreter_id, 
40
+          this.props.navigation.navigate('Map', {Day: date.day, Month: date.month, int_id : this.state.interpreter_id, 
40 41
             Flag: this.state.mapflag, I_Token: this.state.i_token, U_Token: this.state.u_token
41 42
             ,Username: this.state.username, I_Username: this.state.I_username});
42 43
         }
@@ -75,3 +76,8 @@ const styles = StyleSheet.create({
75 76
 
76 77
   
77 78
 
79
+
80
+
81
+
82
+  
83
+