Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Dec 29, 2017
1 parent 5ec47e4 commit 6baaeb4
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Expand Up @@ -34,12 +34,7 @@ npm install --save react-repeatable
// Callback fired when the mouseup, touchcancel, or touchend event is triggered.
}}
>
<button
type="button"
onClick={(event) => {
// The click action will be triggered multiple times.
}}
>
<button type="button">
Press Me
</button>
</Repeatable>
Expand All @@ -55,9 +50,9 @@ repeatDelay | Number | 500 | The time (in milliseconds) to wait before the first
repeatInterval | Number | 32 | The time interval (in milliseconds) on how often to trigger a hold action.
repeatCount | Number | | The number of times the hold action will take place.
onPress | Function(event) | | Callback fired when the mousedown or touchstart event is triggered.
onHoldStart | Function() | | Callback fired once when the hold action is started.
onHoldStart | Function() | | Callback fired once before the first hold action.
onHold | Function() | | Callback fired mutiple times while holding down.
onHoldEnd | Function() | | Callback fired once when the hold action has finished.
onHoldEnd | Function() | | Callback fired once after the last hold action.
onRelease | Function(event) | | Callback fired when the mouseup, touchcancel, or touchend event is triggered.

## License
Expand Down

0 comments on commit 6baaeb4

Please sign in to comment.