File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,12 +34,7 @@ npm install --save react-repeatable
3434 // Callback fired when the mouseup, touchcancel, or touchend event is triggered.
3535 }}
3636>
37- < button
38- type= " button"
39- onClick= {(event ) => {
40- // The click action will be triggered multiple times.
41- }}
42- >
37+ < button type= " button" >
4338 Press Me
4439 < / button>
4540< / Repeatable>
@@ -55,9 +50,9 @@ repeatDelay | Number | 500 | The time (in milliseconds) to wait before the first
5550repeatInterval | Number | 32 | The time interval (in milliseconds) on how often to trigger a hold action.
5651repeatCount | Number | | The number of times the hold action will take place.
5752onPress | Function(event) | | Callback fired when the mousedown or touchstart event is triggered.
58- onHoldStart | Function() | | Callback fired once when the hold action is started .
53+ onHoldStart | Function() | | Callback fired once before the first hold action.
5954onHold | Function() | | Callback fired mutiple times while holding down.
60- onHoldEnd | Function() | | Callback fired once when the hold action has finished .
55+ onHoldEnd | Function() | | Callback fired once after the last hold action.
6156onRelease | Function(event) | | Callback fired when the mouseup, touchcancel, or touchend event is triggered.
6257
6358## License
You can’t perform that action at this time.
0 commit comments