|
|
|
|
49
|
responseListener.current = Notifications.addNotificationResponseReceivedListener(response => {
|
49
|
responseListener.current = Notifications.addNotificationResponseReceivedListener(response => {
|
50
|
console.log("response", response);
|
50
|
console.log("response", response);
|
51
|
console.log("response date", response.notification.date);
|
51
|
console.log("response date", response.notification.date);
|
52
|
- console.log("response date", appointments[0]._id);
|
|
|
53
|
const idDate = response.notification.date;
|
52
|
const idDate = response.notification.date;
|
54
|
if (response.notification.request.content.body == 'Le solicitan una cita'){
|
53
|
if (response.notification.request.content.body == 'Le solicitan una cita'){
|
55
|
navigation.navigate('Confirm');
|
54
|
navigation.navigate('Confirm');
|