Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new lux HKUnit for iOS 17 #94

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Conversation

jgfino
Copy link
Contributor

@jgfino jgfino commented Jun 6, 2024

iOS 17 added support for the "Time in Daylight" metric that includes a metadata item measured in a new HKUnit HKUnit.lux()

This adds support for serializing this new unit to make it accessible in React Native as it does not serialize properly otherwise

Some relevant docs:
https://support.apple.com/guide/watch/see-time-in-daylight-apd3ab22534c/watchos
https://developer.apple.com/documentation/healthkit/hkunit/4126896-lux/
https://developer.apple.com/documentation/healthkit/hkmetadatakeymaximumlightintensity/

Copy link

Expo preview is ready for review.

There should soon be a new native build available here

With that installed just scan this QR code:
QR Preview

@robertherber robertherber merged commit 2b7c82a into kingstinct:master Jun 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants