Skip to content

Commit f85bdc5

Browse files
ExplodingCabbageelicwhite
authored andcommitted
[ScrollView] Document onScrollBeginDrag and onScrollEndDrag (#99)
1 parent c52713c commit f85bdc5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/scrollview.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ This is where `FlatList` comes into play. `FlatList` renders items lazily, just
3131
- [`onMomentumScrollBegin`](scrollview.md#onmomentumscrollbegin)
3232
- [`onMomentumScrollEnd`](scrollview.md#onmomentumscrollend)
3333
- [`onScroll`](scrollview.md#onscroll)
34+
- [`onScrollBeginDrag`](scrollview.md#onscrollbegindrag)
35+
- [`onScrollEndDrag`](scrollview.md#onscrollenddrag)
3436
- [`pagingEnabled`](scrollview.md#pagingenabled)
3537
- [`refreshControl`](scrollview.md#refreshcontrol)
3638
- [`removeClippedSubviews`](scrollview.md#removeclippedsubviews)
@@ -190,6 +192,26 @@ Fires at most once per frame during scrolling. The frequency of the events can b
190192

191193
---
192194

195+
### `onScrollBeginDrag`
196+
197+
Called when the user begins to drag the scroll view.
198+
199+
| Type | Required |
200+
| -------- | -------- |
201+
| function | No |
202+
203+
---
204+
205+
### `onScrollEndDrag`
206+
207+
Called when the user stops dragging the scroll view and it either stops or begins to glide.
208+
209+
| Type | Required |
210+
| -------- | -------- |
211+
| function | No |
212+
213+
---
214+
193215
### `pagingEnabled`
194216

195217
When true, the scroll view stops on multiples of the scroll view's size when scrolling. This can be used for horizontal pagination. The default value is false.

0 commit comments

Comments
 (0)