Commit 90f00ed7 authored by Terrillo Walls's avatar Terrillo Walls

More doc updates

parent 026fec5b
...@@ -109,9 +109,9 @@ AppleHealthKit.initHealthKit(null: Object, (err: string, res: Object) => { ...@@ -109,9 +109,9 @@ AppleHealthKit.initHealthKit(null: Object, (err: string, res: Object) => {
... ...
let options = {value: 200}; let options = { value: 200 };
AppleHealthKit.saveWeight(options: Object, (err: Object, res: Object) => { AppleHealthKit.saveWeight(options: Object, (err: Object, res: Object) => {
if(err){ if (err) {
console.log("error saving weight to healthkit: ", err); console.log("error saving weight to healthkit: ", err);
return; return;
} }
......
'use strict' 'use strict'
/**
* Apple Health Permissions
* @type {Object}
*/
const PERMISSIONS = { const PERMISSIONS = {
DateOfBirth: 'DateOfBirth', DateOfBirth: 'DateOfBirth',
BiologicalSex: 'BiologicalSex', BiologicalSex: 'BiologicalSex',
...@@ -28,7 +32,9 @@ const PERMISSIONS = { ...@@ -28,7 +32,9 @@ const PERMISSIONS = {
SleepAnalysis: 'SleepAnalysis', SleepAnalysis: 'SleepAnalysis',
}; };
/**
* Unit Request Types
*/
const UNITS = { const UNITS = {
gram: 'gram', gram: 'gram',
pound: 'pound', pound: 'pound',
...@@ -52,8 +58,6 @@ const UNITS = { ...@@ -52,8 +58,6 @@ const UNITS = {
mgPerdL: 'mgPerdL', mgPerdL: 'mgPerdL',
}; };
const CONSTANTS = { const CONSTANTS = {
Permissions: PERMISSIONS, Permissions: PERMISSIONS,
Units: UNITS, Units: UNITS,
......
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