Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit cce3e49

Browse files
author
Boris Tacyniak
authored
Merge pull request #2150 from mmmoussa/patch-1
Fix iOS repeated notification timing
2 parents f986f55 + 3dd30ef commit cce3e49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ Notifications.localNotificationSchedule = function({...details}) {
252252
}
253253

254254
const repeatsComponent = {
255-
second: details.repeatType == "minute",
256-
minute: details.repeatType == "hour",
257-
hour: details.repeatType == "day",
255+
second: ['minute', 'hour', 'day', 'week', 'month'].includes(details.repeatType),
256+
minute: ['hour', 'day', 'week', 'month'].includes(details.repeatType),
257+
hour: ['day', 'week', 'month'].includes(details.repeatType),
258258
day: details.repeatType == "month",
259259
dayOfWeek: details.repeatType == "week",
260260
};

0 commit comments

Comments
 (0)