Commit f6bc79c6 authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

Update README.md

parent abd06471
...@@ -85,7 +85,7 @@ AppleHealthKit.isAvailable((err: string, available: bool) => { ...@@ -85,7 +85,7 @@ AppleHealthKit.isAvailable((err: string, available: bool) => {
} }
}); });
``` ```
___
**`initHealthKit`** : check if HealthKit is available on the device **`initHealthKit`** : check if HealthKit is available on the device
...@@ -97,7 +97,9 @@ let healthKitOptions = { ...@@ -97,7 +97,9 @@ let healthKitOptions = {
write: ["Weight"] write: ["Weight"]
} }
}; };
```
```javascript
AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object) => { AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object) => {
if(err) { if(err) {
console.log("error initializing healthkit: ", err); console.log("error initializing healthkit: ", err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment