react-native-add-to-calendar
Installation#
API#
useCalendars#
Hook that exposes some common calendaring helpers and automatically requests the proper permissions.
useShareIcs#
Hook 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.
AddToCalendarScreen#
Add 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: