Skip to content

afeiship/react-swipeable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-swipeable

Swipe events for react.

resource:

properties:

onSwiped: PropTypes.func,
onSwiping: PropTypes.func,
onSwipingUp: PropTypes.func,
onSwipingRight: PropTypes.func,
onSwipingDown: PropTypes.func,
onSwipingLeft: PropTypes.func,
onSwipedUp: PropTypes.func,
onSwipedRight: PropTypes.func,
onSwipedDown: PropTypes.func,
onSwipedLeft: PropTypes.func,
flickThreshold: PropTypes.number,
delta: PropTypes.number,
preventDefaultTouchmoveEvent: PropTypes.bool,
stopPropagation: PropTypes.bool,
nodeName: PropTypes.string,
trackMouse: PropTypes.bool

usage:

<Swipeable
  className="hello-swipeable"
  onSwiping={this.swiping.bind(this)}
  onSwipingUp={this.swipingUp.bind(this)}
  onSwipingRight={this.swipingRight.bind(this)}
  onSwipingDown={this.swipingDown.bind(this)}
  onSwipingLeft={this.swipingLeft.bind(this)}
  onSwipedUp={this.swipedUp.bind(this)}
  onSwipedRight={this.swipedRight.bind(this)}
  onSwipedDown={this.swipedDown.bind(this)}
  onSwipedLeft={this.swipedLeft.bind(this)}
  onSwiped={this.handleSwipeAction.bind(this)}>
    You can swipe here!
</Swipeable>

Releases

No releases published

Packages

No packages published