react-native-add-to-calendar
#
Installation#
API#
useCalendarsHook that exposes some common calendaring helpers and automatically requests the proper permissions.
#
useShareIcsHook that gives convenient access to sharing an ICS file. This is a nicer method of adding events to the calendar for Android that doesn't require extra permissions.
#
AddToCalendarScreenAdd the screen to the Main/Root stack navigator (as a react-navigation modal).
Then navigate to it:
You can define the screen types like this in RootStackParamList:
Add the calendar permissions for Android in app.config.*.ts
: