UNPKG

expo-running-kit

Version:

Expo native module for tracking running and walking workouts — GPS, pace, cadence, auto-pause, and laps.

26 lines 997 B
import type { GpsQuality, PaceStats, SpeedStats, Units } from "../RunningKit.types"; export declare function toDisplayDistance(meters: number, units: Units): number; export declare function formatPace(ms: number, units: Units): string | null; export declare function getGpsQuality(accuracy: number): GpsQuality; type UseLocationProps = { units: Units; speedSmoothingWindow: number; durationRef: React.MutableRefObject<number>; }; export declare function useLocation({ units, speedSmoothingWindow, durationRef, }: UseLocationProps): { gpsQuality: GpsQuality; distanceMeters: number; distanceRef: import("react").RefObject<number>; speedStats: SpeedStats; paceStats: PaceStats; smoothedSpeedMs: number; maxSpeedRef: import("react").RefObject<number>; bestPaceMsRef: import("react").RefObject<number>; steps: { total: number; cadence: number; }; resetLocation: () => void; }; export {}; //# sourceMappingURL=useLocation.d.ts.map