【文件属性】:
文件名称:expo-calendar-helper
文件大小:46KB
文件格式:ZIP
更新时间:2021-05-26 08:02:20
JavaScript
日历助理
此软件包将帮助您请求访问日历和提醒的权限,创建新日历,向日历添加事件以及通过calendarId删除该事件。
更新到Expo SDK40
安装
$ npm install expo-calendar-helper
or
$ yarn add expo-calendar-helper
用法
询问权限并创建新的日历
import { askPermissionsAsync, newCalendar } from 'expo-calendar-helper';
createCalendar = async () => {
const status = await askPermissionsAsync();
if (status) {
newCalendar('MAZINGER Z','lightgreen', 'mazingerSecureStore
【文件预览】:
expo-calendar-helper-master
----index.js(5KB)
----package.json(917B)
----LICENSE(1KB)
----.gitignore(222B)
----README.md(2KB)
----yarn.lock(123KB)