Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuever committed Jan 5, 2025
1 parent 2cf3e28 commit 40c3428
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/scroller/docs/scrollEvent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ScrollEvent


```ts
import { ScrollViewContext } from '@infinite-list/scroll/react-native';

const Page = () => {
const { scrollTo, scrollEventHelper } = useContext(ScrollViewContext);

useEffect(() => scrollEventHelper.subscribeEventHandler('onMomentumScrollBegin', () => {
isAutoScrollingRef.current = true;
isScrolling = true;
}), [])
}
```

0 comments on commit 40c3428

Please sign in to comment.