react-gesture

    0.0.5 • Public • Published

    react-gesture

    Build Status npm package Dependency Status devDependency Status peerDependency Status

    A gesture recognizer for web and mobile devices for React.

    Installation

    yarn add react-gesture
    

    API

    prop type default value
    children element
    disableClick bool | func
    flickThreshold number 0.6
    holdTime number 400
    swipeThreshold number 10
    onSwipeUp func
    onSwipeDown func
    onSwipeLeft func
    onSwipeRight func
    onTap func
    onClick func
    onHold func
    onPinchToZoom func
    onTouchStart func
    onTouchMove func
    onTouchCancel func
    onTouchEnd func
    onMouseDown func
    onMouseMove func
    onMouseUp func

    Examples

    License

    MIT

    Install

    npm i react-gesture

    DownloadsWeekly Downloads

    42

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar