BASE

React Native HealthKit

React Native HealthKit

React Native / mobile development · Free

TypeScript Apple HealthKit bindings for React Native: they enable health integrations with explicit device permissions.

Also known as: kingstinct/react-native-healthkit; react-native-healthkit; healthkit-react-native

Resource illustration: React Native HealthKit

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Connect Apple HealthKit to a React Native application
  • Connect authorized data reading and test behavior when access is denied

Example workflow

A possible workflow; this is not a report of hands-on testing.

Connect Apple HealthKit to a React Native application.

Before you start

  • An iOS React Native project, required HealthKit data types, and a test device.
  • A description of data purposes and permissions requested by the application.

Steps

  1. Define required health data types and requested permissions.
  2. Connect authorized data reading and test behavior when access is denied.
  3. Build the application and test the workflow on target devices.

Check your result

  • The application correctly handles denial or absence of authorized HealthKit data.
  • Access is requested only for required types; iOS integration does not promise HealthKit on Android.

Choosing React Native HealthKit

Connect Apple HealthKit to a React Native application

Choose this when

  • Connect Apple HealthKit to a React Native application
  • Connect authorized data reading and test behavior when access is denied

Requirements

  • Add the HealthKit capability and permission texts; request authorization first, then run queries and subscriptions.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • The module does not work in Expo Go: the README requires your own Dev Client. Clinical Records are in a separate package and unavailable in the simulator.

Frequently asked questions

What can you use for free in React Native HealthKit?

Code and local use under MIT.

What additional costs might arise with React Native HealthKit?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for React Native HealthKit?

MIT for the code; dependencies have separate licenses.

How do you get started with React Native HealthKit?

Define required health data types and requested permissions. Connect authorized data reading and test behavior when access is denied. Build the application and test the workflow on target devices.

How can I repeat HealthKit synchronization without a full export?

Anchored queries return newAnchor, samples, and deletedSamples. After successful synchronization, save the anchor for the next query to retrieve changes and deletions. The README also recommends chunked queries and statistical queries when aggregates rather than all samples are required.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • React Native HealthKit
  • mobile
  • Development

Sources

Other resources