react-native-healthkit-bridge
Version:
A comprehensive React Native bridge for Apple HealthKit with TypeScript support, advanced authorization, and flexible data queries
33 lines (32 loc) • 1.45 kB
JavaScript
// Core exports
export { HealthKitBridge } from './core/HealthKitBridge';
// Native module spec
export { default as HealthKitBridgeSpec } from './HealthKitBridgeSpec';
// Hook exports
export { useHealthKitQuantity, useHealthKitCategory, useHealthKitWorkouts, useHealthKitTypes, useHealthKitProvider } from './hooks/useHealthKit';
// New authorization hook
export { useHealthKitAuthorization } from './hooks/useHealthKitAuthorization';
// Type exports from existing files
export * from './core/types/HealthKitTypes';
export * from './core/types/ProviderTypes';
// Utility exports
export { HealthKitIdentifiers } from './types/HealthKitIdentifiers';
export { HealthKitUnits } from './types/HealthKitUnits';
// Metrics exports
export { MetricsCollector, withMetrics } from './utils/Metrics';
// Cache exports
export { HealthKitCache } from './utils/Cache';
// Retry exports
export { RetryManager, withRetry } from './utils/Retry';
// Logger exports
export { HealthKitLogger, logger, logDebug, logInfo, logWarn, logError } from './utils/Logger';
// New TypeScript-specific exports
export { QuantityTypeIdentifier, CategoryTypeIdentifier, CharacteristicTypeIdentifier, WorkoutTypeIdentifier, HealthKitUnit, HEALTHKIT_IDENTIFIERS, HEALTHKIT_UNITS } from './types/healthkit.types';
// Default configuration
export function getProviderInfo() {
return {
name: 'Native HealthKit Provider',
version: '1.4.10',
available: true
};
}