Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_getReminder = async (reminder: Calendar.Reminder) => {
try {
const newReminder = await Calendar.getReminderAsync(reminder.id!);
Alert.alert(
'Reminder found using getReminderAsync',
JSON.stringify(newReminder)
);
} catch (e) {
Alert.alert('Error finding reminder', e.message);
}
}