react-native-healthkit icon indicating copy to clipboard operation
react-native-healthkit copied to clipboard

HealthKit.subscribeToChanges does not work with RN New Architecture enabled

Open KesoGizmoYoshi opened this issue 5 months ago • 5 comments

https://github.com/KesoGizmoYoshi/rn-healthkit-test

I am unable to get subscribeToChanges to work on a project running with RN New Architecture enabled. The same code works perfectly when running on a prebuilt version with newArchEnabled set to false. When newArchEnabled is set to false, the console log successfully triggers when a new sample exists. However, when newArchEnabled is set to true, nothing happens, and the subscription does not seem to work.

KesoGizmoYoshi avatar Sep 11 '24 12:09 KesoGizmoYoshi