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
26cd0c6d
Commit
26cd0c6d
authored
Nov 09, 2018
by
Terrillo Walls
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Saving weight in the past
parent
06aaa2b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m
RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m
+1
-1
README.md
README.md
+1
-0
No files found.
RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m
View file @
26cd0c6d
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
-
(
void
)
body_saveWeight
:(
NSDictionary
*
)
input
callback
:(
RCTResponseSenderBlock
)
callback
-
(
void
)
body_saveWeight
:(
NSDictionary
*
)
input
callback
:(
RCTResponseSenderBlock
)
callback
{
{
double
weight
=
[
RCTAppleHealthKit
doubleValueFromOptions
:
input
];
double
weight
=
[
RCTAppleHealthKit
doubleValueFromOptions
:
input
];
NSDate
*
sampleDate
=
[
RCTAppleHealthKit
dateFromOptions
DefaultNow
:
input
];
NSDate
*
sampleDate
=
[
RCTAppleHealthKit
dateFromOptions
:
input
key
:
@"startDate"
withDefault
:
[
NSDate
date
]
];
HKUnit
*
unit
=
[
RCTAppleHealthKit
hkUnitFromOptions
:
input
key
:
@"unit"
withDefault
:
[
HKUnit
poundUnit
]];
HKUnit
*
unit
=
[
RCTAppleHealthKit
hkUnitFromOptions
:
input
key
:
@"unit"
withDefault
:
[
HKUnit
poundUnit
]];
HKQuantity
*
weightQuantity
=
[
HKQuantity
quantityWithUnit
:
unit
doubleValue
:
weight
];
HKQuantity
*
weightQuantity
=
[
HKQuantity
quantityWithUnit
:
unit
doubleValue
:
weight
];
...
...
README.md
View file @
26cd0c6d
...
@@ -79,6 +79,7 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, results: Object) =>
...
@@ -79,6 +79,7 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, results: Object) =>
## Changelog
## Changelog
0.
6.4v
0.
6.4v
-
Basal energy (
[
#23
](
https://github.com/terrillo/rn-apple-healthkit/pull/23
)
)
-
Basal energy (
[
#23
](
https://github.com/terrillo/rn-apple-healthkit/pull/23
)
)
-
Fixed issues with saving weight in the past
0.
6.3v
0.
6.3v
-
Food and Water (
[
#19
](
https://github.com/terrillo/rn-apple-healthkit/pull/19
)
)
-
Food and Water (
[
#19
](
https://github.com/terrillo/rn-apple-healthkit/pull/19
)
)
...
...
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