Open osartun opened 3 years ago
Same problem here...
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.
Same thing happening here.
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
). https://github.com/wmcmahan/react-native-calendar-events/blob/1bb027b02ea8bb9ba1fb18f7b65eb25be9677890/android/src/main/java/com/calendarevents/RNCalendarEvents.java#L877