UNPKG

expo-health-kit

Version:

A comprehensive TypeScript library for React Native and Expo that enables exporting Apple HealthKit data

20 lines (17 loc) 564 B
const { withPlugins } = require('@expo/config-plugins'); // This file is used during the build process and not bundled with the app module.exports = function withHealthKit(config, props = {}) { if (!config.ios) { return config; } return withPlugins(config, [ [ require('../build/plugin/withHealthKit').default, { healthShareUsageDescription: props.healthShareUsageDescription, healthUpdateUsageDescription: props.healthUpdateUsageDescription, requiredDataTypes: props.requiredDataTypes, }, ], ]); };