这是我在app.json中的配置
"plugins": [
[
"expo-calendar",
{
"calendarPermission": "Allow $(PRODUCT_NAME) to access your calendar"
}
]
]
此代码在我的应用程序的索引中,但应用程序在完成Bundle 时崩溃
useEffect(() => {
(async () => {
await Calendar.requestCalendarPermissionsAsync();
})();
}, []);
这就是我得到的错误
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string个