Package Exports
- react-native-nitro-event-kit
- react-native-nitro-event-kit/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-nitro-event-kit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π React Native Nitro Event Kit
πΉ React Native Nitro Event Kit enables seamless access to iOS calendar events in your React Native applications. Fetch local events efficiently using the power of Nitro Modules.
π Features
- π Fetch Local Events: Retrieve all events from the userβs iOS calendar.
- β‘ Optimized Performance: Built with Nitro for low-latency event retrieval.
- π Secure Access: Requires user permission for accessing calendar data.
- π± Native iOS Integration: Fully leverages iOS CalendarKit for accurate data.
π οΈ Prerequisites
Before getting started, ensure you have:
- React Native version
0.60+
react-native-nitro-modules
- iOS 16+ (Native API support)
π¦ Installation
Run the following command to install the package:
npm install react-native-nitro-event-kit react-native-nitro-modules
cd ios && pod install
π Examples
π Fetch Local Events
import { NitroEventKit } from 'react-native-nitro-eventkit'
const fetchEvents = async () => {
try {
const events = await NitroEventKit.getLocalEvents()
console.log('Fetched events:', events)
} catch (error) {
console.error('Error fetching calendar events:', error)
}
}
fetchEvents()