wmcmahan / react-native-calendar-reminders

React Native Module for IOS Calendar Reminders
MIT License
90 stars 20 forks source link

Request for simpler function to update existing reminder #14

Closed divyajalan closed 8 years ago

divyajalan commented 8 years ago

Hi @wmcmahan,

I was trying to update the reminder's isCompleted value from my application. Just to mark a reminder as completed, I don't want to use saveReminder and send all the details viz title, alarms, recurrence, notes, etc. Can we have an update method where if I say something like

        RNCalendarReminders.updateReminder(reminder.id, {
            id: reminder.id,
            isCompleted: reminder.isCompleted,
        });

it should keep the remaining values as it is, rather than resetting everything?

wmcmahan commented 8 years ago

Hey @divyajalan, that's a good point. A more concise method to update reminder properties would definitely help. I will try to find some time soon to take a look at implementing that.

wmcmahan commented 8 years ago

Hi @divyajalan, i've added a method named updateReminder for simpler editing of an existing reminder. I hope it helps. Cheers!