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
4631b955
Commit
4631b955
authored
Jun 27, 2016
by
Greg Wilson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com-GregWilson:GregWilson/react-native-apple-healthkit
parents
7ea9922a
352bbd42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
README.md
README.md
+8
-4
No files found.
README.md
View file @
4631b955
...
@@ -105,7 +105,8 @@ Write Permissions:
...
@@ -105,7 +105,8 @@ Write Permissions:
### Methods
### Methods
**`isAvailable`**
: check if HealthKit is available on the device
#### **`isAvailable`**
check if HealthKit is available on the device
```
javascript
```
javascript
AppleHealthKit
.
isAvailable
((
err
:
string
,
available
:
bool
)
=>
{
AppleHealthKit
.
isAvailable
((
err
:
string
,
available
:
bool
)
=>
{
if
(
available
){
if
(
available
){
...
@@ -115,7 +116,8 @@ AppleHealthKit.isAvailable((err: string, available: bool) => {
...
@@ -115,7 +116,8 @@ AppleHealthKit.isAvailable((err: string, available: bool) => {
```
```
__
_
__
_
**`initHealthKit`**
: check if HealthKit is available on the device
#### **`initHealthKit`**
check if HealthKit is available on the device
`initHealthKit`
requires an options object with HealthKit permission settings.
`initHealthKit`
requires an options object with HealthKit permission settings.
```
javascript
```
javascript
...
@@ -140,7 +142,8 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
...
@@ -140,7 +142,8 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
__
_
__
_
**`getCurrentWeight`**
: get the most recent weight value
#### **`getCurrentWeight`**
get the most recent weight value
```
javascript
```
javascript
AppleHealthKit
.
getCurrentWeight
(
null
,
(
err
:
string
,
weight
:
number
)
=>
{
AppleHealthKit
.
getCurrentWeight
(
null
,
(
err
:
string
,
weight
:
number
)
=>
{
if
(
err
){
if
(
err
){
...
@@ -154,7 +157,8 @@ AppleHealthKit.getCurrentWeight(null, (err: string, weight: number) => {
...
@@ -154,7 +157,8 @@ AppleHealthKit.getCurrentWeight(null, (err: string, weight: number) => {
__
_
__
_
**`saveWeight`**
: save a numeric weight value to HealthKit
#### **`saveWeight`**
save a numeric weight value to HealthKit
`saveWeight`
accepts an object containing a numeric weight value with the key
*weight*
:
`saveWeight`
accepts an object containing a numeric weight value with the key
*weight*
:
```
javascript
```
javascript
...
...
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