Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rn-apple-healthkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
rn-apple-healthkit
Commits
90f00ed7
Commit
90f00ed7
authored
Sep 02, 2017
by
Terrillo Walls
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More doc updates
parent
026fec5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
README.md
README.md
+2
-2
constants.js
constants.js
+7
-3
No files found.
README.md
View file @
90f00ed7
...
...
@@ -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
)
=>
{
if
(
err
)
{
if
(
err
)
{
console
.
log
(
"
error saving weight to healthkit:
"
,
err
);
return
;
}
...
...
constants.js
View file @
90f00ed7
'
use strict
'
/**
* Apple Health Permissions
* @type {Object}
*/
const
PERMISSIONS
=
{
DateOfBirth
:
'
DateOfBirth
'
,
BiologicalSex
:
'
BiologicalSex
'
,
...
...
@@ -28,7 +32,9 @@ const PERMISSIONS = {
SleepAnalysis
:
'
SleepAnalysis
'
,
};
/**
* Unit Request Types
*/
const
UNITS
=
{
gram
:
'
gram
'
,
pound
:
'
pound
'
,
...
...
@@ -52,8 +58,6 @@ const UNITS = {
mgPerdL
:
'
mgPerdL
'
,
};
const
CONSTANTS
=
{
Permissions
:
PERMISSIONS
,
Units
:
UNITS
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment