taparoo
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

taparoo

React component for touch event handling

Install

$ npm install taparoo

Props

interface TaparooProps {
  onSwipe?: TaparooTouchEventHandler;
  onSwipeUp?: TaparooTouchEventHandler;
  onSwipeDown?: TaparooTouchEventHandler;
  onSwipeLeft?: TaparooTouchEventHandler;
  onSwipeRight?: TaparooTouchEventHandler;
  onTap?: TaparooTouchEventHandler;
  swipeThreshold?: number;
}

type TaparooTouchEventHandler = (event: TouchEvent, swipes?: Array<SwipeDirection>) => void;

Give it a little tappy.

Package Sidebar

Install

npm i taparoo

Weekly Downloads

21

Version

1.0.9

License

MIT

Unpacked Size

1.47 MB

Total Files

12

Last publish

Collaborators

  • ryanwalters