UNPKG

react-all-player

Version:

react-all-player is a simple, lightweight, accessible and customizable React media player that supports modern browsers.

9 lines (8 loc) 339 B
declare type Event = React.DOMAttributes<HTMLDivElement>['onTouchStart']; interface Props { onDoubleTap: Event; onTap?: Event; tapThreshold?: number; } declare const useDoubleTap: ({ onDoubleTap, onTap, tapThreshold }: Props) => (event: import("react").TouchEvent<HTMLDivElement>) => void; export default useDoubleTap;