You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a calendar event with alarms the number of minutes must be different between iOS and Android or otherwise on one platform the alarm is before the startDate and on the other it's after the startDate.
iOS
Android
Also, the number is not allowed to be negative on Android or it might not show the alarms at all.
I expect to get the same behavior on both, Android and iOS, when using the same data.
Actual Behavior
I get different results between Android and iOS.
Notes
I suggest to add Math.abs() to the Android code as CalendarContract.Reminders.MINUTES isn't allowed to be a negative value anyway (with the exception of -1).
Some people said that they were successfully using negative number.
Anyway, PR is welcome to improve the lib. This will be released as a major release even if that's a minor change because some people so iOS ? 30 : -30.
When creating a calendar event with
alarms
the number of minutes must be different between iOS and Android or otherwise on one platform the alarm is before thestartDate
and on the other it's after thestartDate
.Also, the number is not allowed to be negative on Android or it might not show the alarms at all.
Environment
Steps to Reproduce
Sorry, this is an incomplete code sample.
Expected Behavior
I expect to get the same behavior on both, Android and iOS, when using the same data.
Actual Behavior
I get different results between Android and iOS.
Notes
I suggest to add
Math.abs()
to the Android code asCalendarContract.Reminders.MINUTES
isn't allowed to be a negative value anyway (with the exception of-1
).react-native-calendar-events/android/src/main/java/com/calendarevents/RNCalendarEvents.java
Line 877 in 1bb027b
The text was updated successfully, but these errors were encountered: