Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 300 Bytes

isAvailable.md

File metadata and controls

20 lines (15 loc) · 300 Bytes

isAvailable

Check for Healthkit availability

import AppleHealthKit from 'react-native-health'

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

Example output:

true