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
18254291
Commit
18254291
authored
Jul 09, 2016
by
Greg Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
a36f2331
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
README.md
README.md
+26
-0
No files found.
README.md
View file @
18254291
...
@@ -144,6 +144,32 @@ The available HealthKit permissions to use with `initHealthKit`
...
@@ -144,6 +144,32 @@ The available HealthKit permissions to use with `initHealthKit`
| AppleExerciseTime |
[
HKQuantityTypeIdentifierAppleExerciseTime
](
https://developer.apple.com/reference/healthkit/hkquantitytypeidentifierappleexercisetime?language=objc
)
| ✓ | |
| AppleExerciseTime |
[
HKQuantityTypeIdentifierAppleExerciseTime
](
https://developer.apple.com/reference/healthkit/hkquantitytypeidentifierappleexercisetime?language=objc
)
| ✓ | |
| DietaryEnergy |
[
HKQuantityTypeIdentifierDietaryEnergyConsumed
](
https://developer.apple.com/reference/healthkit/hkquantitytypeidentifierdietaryenergyconsumed?language=objc
)
| ✓ | ✓ |
| DietaryEnergy |
[
HKQuantityTypeIdentifierDietaryEnergyConsumed
](
https://developer.apple.com/reference/healthkit/hkquantitytypeidentifierdietaryenergyconsumed?language=objc
)
| ✓ | ✓ |
These permissions are exported as constants of the
`react-native-apple-healthkit`
module.
```
javascript
import
AppleHealthKit
from
'
react-native-apple-healthkit
'
;
...
// get the available permissions from AppleHealthKit.Constants object
const
PERMS
=
AppleHealthKit
.
Constants
.
Permissions
;
// setup healthkit read/write permissions from PERMS
const
healthKitOptions
=
{
permissions
:
{
read
:
[
PERMS
.
StepCount
,
PERMS
.
Height
,
],
write
:
[
PERMS
.
StepCount
],
}
};
...
```
Options
Options
-------
-------
...
...
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