Javascript Calendar.createEventAsync仅在android Expo上崩溃

Javascript Calendar.createEventAsync仅在android Expo上崩溃,javascript,android,reactjs,react-native,expo,Javascript,Android,Reactjs,React Native,Expo,我正试图在设备的日历中添加一个事件,在iOS上它工作得很好,但在Android上,应用程序崩溃了,我得到了这个错误 22956/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #6 Process: …., PID: 22713 java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer at expo.modu

我正试图在设备的日历中添加一个事件,在iOS上它工作得很好,但在Android上,应用程序崩溃了,我得到了这个错误

    22956/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #6
   Process: …., PID: 22713
   java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
       at expo.modules.calendar.CalendarModule.createRemindersForEvent(CalendarModule.java:869)
       at expo.modules.calendar.CalendarModule.saveEvent(CalendarModule.java:751)
       at expo.modules.calendar.CalendarModule.access$500(CalendarModule.java:34)
       at expo.modules.calendar.CalendarModule$6.run(CalendarModule.java:161)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:257)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:784)” 
这是我的代码:

   let isoFormattedStartDate = moment(event.eventStartDate).toISOString();
let isoFormattedEndDate = moment(event.eventEndDate).toISOString();

Calendar.createEventAsync(Calendar.DEFAULT, {
  title: name,
  startDate: isoFormattedStartDate,
  endDate: isoFormattedEndDate,
  location: location,
  timeZone: "GMT+1",
  alarms: [{relativeOffset: -1}, {relativeOffset: -1440}]
})
  .then((event) => {
    console.log("Calendar.createEventAsync success: ", event);
    Alert.alert("Added To Calendar");
  })
  .catch((error) => {
    console.log("Calendar.createEventAsync failure: ", error);
  });
Package.json

。。。 },

我不知道为什么它只是在安卓上崩溃。任何帮助都将不胜感激!谢谢

修复程序在这里


我们可以期待expo SDk 35中的修复。

日期的值似乎来自一个整数值。删除警报,它就会工作。您好@omprakash8080谢谢您的回答。警报是我想要的主要功能。我希望人们能在活动开始前1天和2小时记住即将举行的活动,onHi Rajendran,非常感谢您的回答。我现在正在做其他事情,所以我将不得不在另一个时间回到这个错误。sdk计划何时发布?
"dependencies": {
"expo": "33.0.7",
"expo-calendar": "~5.0.1",
"expo-cli": "^2.19.5",
 "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",