Overview of react-native-health API categories
masterThe react-native-health library provides a comprehensive interface for interacting with Apple HealthKit. The API is organized into several functional categories:
- Base Methods: Core lifecycle and initialization methods like
isAvailable,initHealthKit, andgetAuthStatus. - Background Methods: Methods for setting up observers to track data changes in the background, such as
initStepCountObserver. - Body & Vitals: Access and save physical metrics including weight, height, BMI, heart rate, blood pressure, and oxygen saturation.
- Fitness & Activity: Track steps, distance (walking, running, swimming, cycling), flights climbed, and energy burned.
- Dietary & Lab Tests: Manage nutritional data (water, fat) and clinical data (blood glucose, blood alcohol content).
- Mindfulness & Sleep: Access mindfulness session data and sleep samples.
- Characteristic Methods: Retrieve biological data like sex, blood type, and date of birth.
- Hearing & Clinical: Access environmental audio exposure and clinical records.
Use the specific method categories to find the appropriate functions for your health-tracking requirements.