@lohan9999/rn-calendar-events
v1.2.0
Published
A modern React Native module for calendar events
Readme
rn-calendar-events
A modern React Native module for seamless access to native calendar functionality on both iOS and Android. Rebuilt for performance and compatibility with the New Architecture (TurboModules).
Features
- Create, fetch, update, and delete calendar events.
- Permission handling for both platforms.
- Support for multiple calendars.
- Modern Swift (iOS) and Kotlin (Android) implementations.
Installation
npm install @lohan9999/rn-calendar-events
# or
yarn add @lohan9999/rn-calendar-eventsiOS Setup
Add the following to your Info.plist:
<key>NSCalendarsUsageDescription</key>
<string>This app requires access to your calendar to schedule events.</string>
<key>NSCalendarsFullAccessUsageDescription</key>
<string>This app requires full access to your calendar to manage events.</string>Android Setup
Permissions are automatically added to your manifest by the library, but ensure your app handles runtime permissions if targeting Android 6.0+.
Usage
Permissions
import RnCalendarEvents from 'rn-calendar-events';
const status = await RnCalendarEvents.requestPermissions();
if (status === 'authorized') {
// Access granted
}Fetching Calendars
const calendars = await RnCalendarEvents.findCalendars();
console.log(calendars);Creating an Event
const eventId = await RnCalendarEvents.saveEvent('New Meeting', {
startDate: '2026-06-01T10:00:00.000Z',
endDate: '2026-06-01T11:00:00.000Z',
notes: 'Discuss project roadmap',
});Fetching Events
const events = await RnCalendarEvents.fetchAllEvents(
'2026-01-01T00:00:00.000Z',
'2026-12-31T23:59:59.000Z'
);License
MIT
Made with create-react-native-library
