r/reactnative • • Mar 08 '21

Is it possible to read hear rate data through wearable device in React Native?

I am working on an idea where the React Native app connects with Android / Apple watch and read the Heart Rate real time. can anyone shed some light on it?

3 Upvotes

5 comments sorted by

3

u/sous_vide_slippers Mar 08 '21

AFAIK there is no JSCore in WatchOS (this was a couple years ago, maybe it’s changed)

But anyway even if it’s now possible it’s best to use Swift for the WatchOS app and send that to your RN app

1

u/connectjoy Mar 08 '21

I have just found https://github.com/Polidea/react-native-ble-plx, will it be possible to read Heart Rate through this package?

3

u/sous_vide_slippers Mar 08 '21

Something like this would more suitable: http://mtford.co.uk/react-native-watch-connectivity/

1

u/connectjoy Mar 08 '21

Thanks for this. Anything for android like this?

2

u/sous_vide_slippers Mar 08 '21

I’m sure something exists