mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
739 B
TypeScript
27 lines
739 B
TypeScript
import Swipeable = require('react-swipeable');
|
|
import React = require('react');
|
|
|
|
var SampleComponent = React.createClass({
|
|
render: function () {
|
|
return (
|
|
<Swipeable
|
|
onSwiping={this.swiping}
|
|
onSwipingUp={this.swipingUp}
|
|
onSwipingRight={this.swipingRight}
|
|
onSwipingDown={this.swipingDown}
|
|
onSwipingLeft={this.swipingLeft}
|
|
onSwipedUp={this.swipedUp}
|
|
onSwipedRight={this.swipedRight}
|
|
onSwipedDown={this.swipedDown}
|
|
onSwipedLeft={this.swipedLeft}
|
|
onSwiped={this.handleSwipeAction}
|
|
preventDefaultTouchmoveEvent={false}
|
|
nodeName={"swipe"}>
|
|
<div>
|
|
This element can be swiped
|
|
</div>
|
|
</Swipeable>
|
|
)
|
|
}
|
|
})
|