Skip to content

Commit

Permalink
Merge pull request #2150 from mmmoussa/patch-1
Browse files Browse the repository at this point in the history
Fix iOS repeated notification timing
  • Loading branch information
Boris Tacyniak committed Oct 1, 2021
2 parents f986f55 + 3dd30ef commit cce3e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ Notifications.localNotificationSchedule = function({...details}) {
}

const repeatsComponent = {
second: details.repeatType == "minute",
minute: details.repeatType == "hour",
hour: details.repeatType == "day",
second: ['minute', 'hour', 'day', 'week', 'month'].includes(details.repeatType),
minute: ['hour', 'day', 'week', 'month'].includes(details.repeatType),
hour: ['day', 'week', 'month'].includes(details.repeatType),
day: details.repeatType == "month",
dayOfWeek: details.repeatType == "week",
};
Expand Down

0 comments on commit cce3e49

Please sign in to comment.