npm react-native-health-connect 3.3.0
Release 3.3.0

latest releases: 4.1.3, 4.1.2, 4.1.1...
22 months ago

3.3.0 (2024-11-10)

This major release introduces exciting new features that have been long-awaited. I didn’t have the chance to implement these myself, so a huge thanks goes to @ugurakin1 and @taisuke-j for their contributions! They’ve added support for requesting exercise permission routes and enabled grouping by duration with aggregation.

Features

  • add aggregateGroupByDuration API (#171) (60efc22)
  • adds a new method for requesting exercise permissions (#167) (3cbe841)

Breaking changes

  1. The TimeRangeSlicer interface has changed a bit. It will accept length instead of duration:
export interface DurationRangeSlicer {
  duration: 'MILLIS' | 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS';
-  duration: number;
+  length: number;
}

export interface PeriodRangeSlicer {
  period: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
-  duration: number;
+  length: number;
}
  1. Request permission API has changed and does not accept package name anymore. The new signature looks like this:
function requestPermission(
  permissions: (Permission | WriteExerciseRoutePermission)[]
): Promise<Permission[]>

Don't miss a new react-native-health-connect release

NewReleases is sending notifications on new releases.