react-native-add-calendar-event icon indicating copy to clipboard operation
react-native-add-calendar-event copied to clipboard

Is there a way to grab the event dates after its creations?

Open marciok opened this issue 5 years ago • 3 comments

Hi, I'm trying to get event dates after its creation, as far as I understood there's no way of doing that, on iOS for instances the dates are not passed on the delegate. Is that correct, or there is a workaround?

Thanks!!

marciok avatar Feb 28 '19 23:02 marciok

hi! this is indeed something that makes sense, feel free to open a PR for this. On ios, this should be fairly easy to do here https://github.com/vonovak/react-native-add-calendar-event/blob/2f6ea55e27b0eb08bb763cd4d7ead905b4b8ee2b/ios/AddCalendarEvent.m#L304

vonovak avatar Mar 01 '19 10:03 vonovak

Exactly, on iOS is pretty simple, what about on android? I looked at the code and honestly I have no idea how to do it, or if that is even possible :(

Thank you!

marciok avatar Mar 01 '19 10:03 marciok

you could use https://github.com/wmcmahan/react-native-calendar-events/blob/2d6f2416ba1eff3769f41b1237904c37e69a4ef6/android/src/main/java/com/calendarevents/CalendarEvents.java#L349 given the event id

vonovak avatar Mar 01 '19 11:03 vonovak