Setting Alarms Using Calendar.createEventAsync

What is the correct format for the array of alarms in Calendar.createEventAsync?

I am using the following code to create an event on my device’s calendar. However, whenever I attempt to create an event, my program crashes. It does not crash if no alarms are included in the event.

let eventDetails = {
      title: 'Test Event',
      startDate: moment()
        .add(1, 'm')
      endDate: moment()
        .add(5, 'm')
      timeZone: Localization.timezone,
      // alarms (Array<Alarm>)

  /**** This causes the crash ****/
     alarms: [
          method: Calendar.AlarmMethod.DEFAULT


    try {
      let createEventAsyncRes = await Calendar.createEventAsync(
      console.log({ createEventAsyncRes });
    } catch (error) {

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.