vonovak / react-native-add-calendar-event

Create, view or edit events in react native using the standard iOS / Android dialogs
MIT License
350 stars 102 forks source link

Crash when using with expo-dev-client ? #166

Closed gkpo closed 2 years ago

gkpo commented 2 years ago

I know this package isn't supposed to work with Expo managed apps. But Expo now has a feature where you can build your app with custom native code (see the documentation: https://docs.expo.dev/workflow/customizing/#developing-apps-with-custom-native-code).

Now my problem is that the app instantly crashes when I call AddCalendarEvent.presentEventCreatingDialog without even leaving a stack trace...

Steps to reproduce:

Any idea why this could be happening ? any help would be very much appreciated!

gkpo commented 2 years ago

Fixed this by adding NSCalendarsUsageDescription and NSContactsUsageDescription to app.json: https://stackoverflow.com/questions/48157185/info-plist-file-for-react-native-ios-app-using-expo-sdk