You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sleep data value is one of "INBED", "ASLEEP", "AWAKE", "DEEP", "REM" and "CORE", whereas the type of HealthValue > Value is fixed to a number.
To Reproduce
Steps to reproduce the behavior:
Run getSleepSamples with any options and you will note on success the data contains strings in value.
Expected behavior
Either
A) The types should be updated to support number or string.
or
B) The getSleepSampleQuery should not convert the values returned by AppleHealthKit to strings and return the integer values. Additionally, RN-HealthKit can export an Enum that maps the integers to the respective Sleep Categories.
Screenshots
Smartphone (please complete the following information):
Device: [iPhone 14 Plus, reproducible on all devices]
OS: [iOS 16.4.1]
Version [latest]
The text was updated successfully, but these errors were encountered:
Describe the bug
Sleep data value is one of "INBED", "ASLEEP", "AWAKE", "DEEP", "REM" and "CORE", whereas the type of HealthValue > Value is fixed to a number.
To Reproduce
Steps to reproduce the behavior:
Run getSleepSamples with any options and you will note on success the data contains strings in value.
You can see here, strings are returned for the value object, while HealthValue is defined as number.
Expected behavior
Either
A) The types should be updated to support number or string.
or
B) The getSleepSampleQuery should not convert the values returned by AppleHealthKit to strings and return the integer values. Additionally, RN-HealthKit can export an Enum that maps the integers to the respective Sleep Categories.
Screenshots
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: