2.0.0
In addition to bugfixes, this release introduces some minor breaking changes:
- Support for React Native 0.60+ only
- AndroidX support!
- Android & iOS package name have changed. If you rely on React Native autolinking, you don't have to change a thing, otherwise, please see README to update installation instruction.
- Permissions method names have changed for more explicit
checkPermissions
&requestPermissions
. - For iOS, we now avoid crashes at all cost, which means
- if a native method fails, it should be recoverable from JavaScript (promise rejection) - we tried to cover most native code part in the bridge to be able to catch all kind of exception
- An exception has been made for fetching event: if some part of the serialization fails, a NSLog is emitted & the specific problematic part is ommited (eg: an alarm or a structuredLocation could be missing) and the process continues on other events.
We keep in mind the idea of adding anerror
field into calendar event so the information is explicitely available from JavaScript.
This is to avoid receving a promise rejection if you fetch 2 months of events & have a single tiny information that we failed to serialize. In this cases, you will receive all fetched calendar events with just a tiny information missing, which offers a better UX.
All platforms
Android
- Package is now
com.calendarevents.RNCalendarEvents
a39efe7 by @MoOx - Fixed
'boolean android.database.Cursor.moveToNext()' on a null object reference
error e7c9680 by @MoOx - Fixed parsing allowed availability #268 by @saghul
- Added AndroidX support for react-native 0.60 #263 by @yfuks
- Added: use PermissionListener to avoid Android manual steps #252 by @saghul
- Added "NEVER ASK ME AGAIN" status added in Android #273 by @webtaculars
- Added key to skip setting timezone on Android #271 by @eleddie
iOS
- Package is now
RNCalendarEvents
5ea007c by @MoOx - Fixed crashes related to structured location #253 by @eladgel & 4560a2f by @MoOx
- Fixed iOS 13 show bug #279 by @huang303513
- Minimal version to iOS 9.0, like react-native 0.60 5ea007c by @MoOx
- Avoid iOS crashes at all cost 314 by @MoOx