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

Feature request - weight, height, bmi, dob, sex

Open ottob opened this issue 4 years ago • 2 comments

Hi, this looks like a really nice package with a clean api.

Any plans of adding support for reading/writing these additional data types? I know they are available on iOS, but I don't know about Android.

ottob avatar Mar 13 '20 12:03 ottob

On iOS they are available, yes.

The situation with Android is:

  • Weight - supported
  • Height - supported
  • BMI - complex, due to the two below not supported
  • Date of Birth - not supported
  • Gender - not supported

However, DoB and Gender can be fetched from Google's People API. It might make sense to bake in this functionality, but it would require integrating one more API to get all of the features. If you're interested in putting down some code, I can give you guidance and anything you need. :)

Cheers!

dmitov avatar Mar 15 '20 16:03 dmitov

Hey @dmitov,

When you say weight/height are available/supported, do you mean they're already implemented in the react-native-fitness APIs?

If not and you have any guidance to provide, I'd be happy to take a shot at it and submit a PR if successful.

Cheers!

patrick-samy avatar Oct 01 '20 12:10 patrick-samy