Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用expo日历。createEventAsync()返回失败_Javascript_Reactjs_React Native_Expo_Expo Calendar - Fatal编程技术网

Javascript 使用expo日历。createEventAsync()返回失败

Javascript 使用expo日历。createEventAsync()返回失败,javascript,reactjs,react-native,expo,expo-calendar,Javascript,Reactjs,React Native,Expo,Expo Calendar,我使用Calendar.createEventAsync()创建事件 SDK Version: “expo”: “~38.0.8”, “expo-calendar”: “~8.2.2”, Platforms(Android/iOS/web/all): iOS 在我尝试创建每月重复事件之前,它工作得很好。我知道问题来自“复发”。但我不知道怎么了 当createEvent for weekly Recurrential时,它通过以下recurrentRule运行良好: const taskId =

我使用Calendar.createEventAsync()创建事件

SDK Version: “expo”: “~38.0.8”,
“expo-calendar”: “~8.2.2”,
Platforms(Android/iOS/web/all): iOS
在我尝试创建每月重复事件之前,它工作得很好。我知道问题来自“复发”。但我不知道怎么了

当createEvent for weekly Recurrential时,它通过以下recurrentRule运行良好:

const taskId = await Calendar.createEventAsync(
task.calendarId,
{
title: task.title,
startDate: task.startDate,
endDate: task.endDate,
alarms: [{relativeOffset: task.alarmTime}],
allDay: task.allDay,
notes: task.notes,
timeZone: task.timeZone,
location: task.locationAddress,
recurrenceRule: task.recurrenceRule
}
)
recurrentRule: Object {
“daysOfTheWeek”: Array [
Object {
“dayOfTheWeek”: 2,
},
Object {
“dayOfTheWeek”: 3,
},
],
“frequency”: “weekly”,
“interval”: 1,
}
但当我通过以下重现规则创建每月事件时失败:

const taskId = await Calendar.createEventAsync(
task.calendarId,
{
title: task.title,
startDate: task.startDate,
endDate: task.endDate,
alarms: [{relativeOffset: task.alarmTime}],
allDay: task.allDay,
notes: task.notes,
timeZone: task.timeZone,
location: task.locationAddress,
recurrenceRule: task.recurrenceRule
}
)
recurrentRule: Object {
“daysOfTheWeek”: Array [
Object {
“dayOfTheWeek”: 2,
},
Object {
“dayOfTheWeek”: 3,
},
],
“frequency”: “weekly”,
“interval”: 1,
}
有人能告诉我每月复发的原因吗。谢谢