Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function () {
let interval = 5 * 1000;
let notification: any = createNotification(this.title);
notification.android = { exact:true };
Notifications.scheduleNotificationWithTimerAsync(
notification,
{
interval,
repeat: false,
}
);
}
,
async function () {
let interval = 10 * 1000;
let id = await Notifications.scheduleNotificationWithTimerAsync(
createNotification(this.title),
{
interval,
repeat: false,
}
);
Notifications.cancelScheduledNotificationAsync(id);
}
,