Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 284 Bytes

isAvailable().md

File metadata and controls

13 lines (11 loc) · 284 Bytes

Check for Healthkit availability

import AppleHealthKit from 'rn-apple-healthkit';

AppleHealthKit.isAvailable((err: Object, available: boolean) => {
  if (err) {
    console.log("error initializing Healthkit: ", err);
    return;
  }
  // Healthkit is available
});