1 | import type { DependencyList, RNNativeScrollEvent, ReanimatedScrollEvent } from './commonTypes';
|
2 | import type { EventHandlerInternal, EventHandlerProcessed } from './useEvent';
|
3 | export type ScrollHandler<Context extends Record<string, unknown> = Record<string, unknown>> = (event: ReanimatedScrollEvent, context: Context) => void;
|
4 | export interface ScrollHandlers<Context extends Record<string, unknown>> {
|
5 | onScroll?: ScrollHandler<Context>;
|
6 | onBeginDrag?: ScrollHandler<Context>;
|
7 | onEndDrag?: ScrollHandler<Context>;
|
8 | onMomentumBegin?: ScrollHandler<Context>;
|
9 | onMomentumEnd?: ScrollHandler<Context>;
|
10 | }
|
11 | export type ScrollHandlerProcessed<Context extends Record<string, unknown> = Record<string, unknown>> = EventHandlerProcessed<RNNativeScrollEvent, Context>;
|
12 | export type ScrollHandlerInternal = EventHandlerInternal<RNNativeScrollEvent>;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare function useAnimatedScrollHandler<Context extends Record<string, unknown>>(handlers: ScrollHandler<Context> | ScrollHandlers<Context>, dependencies?: DependencyList): ScrollHandlerProcessed<Context>;
|
27 |
|
\ | No newline at end of file |