File tree 1 file changed +3
-8
lines changed
docs/docs/guides/reanimated
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,17 @@ You can checkout [example](https://github.com/lodev09/react-native-true-sheet/tr
21
21
``` tsx
22
22
import { useEvent , useHandler } from ' react-native-reanimated'
23
23
24
- type PageScrollHandler = (sizeInfo : SizeInfo , context : unknown ) => void
24
+ type DragChangeHandler = (sizeInfo : SizeInfo , context : unknown ) => void
25
25
26
26
export const useDragChangeHandler = (
27
- handler : PageScrollHandler ,
27
+ handler : DragChangeHandler ,
28
28
dependencies : DependencyList = []
29
29
) => {
30
30
const handlers = {
31
31
onDragChange: handler ,
32
32
}
33
33
34
- const { context, doDependenciesDiffer } = useHandler (
35
- {
36
- onDragChange: handler ,
37
- },
38
- dependencies
39
- )
34
+ const { context, doDependenciesDiffer } = useHandler (handlers , dependencies )
40
35
41
36
return useEvent <DragChangeEvent >(
42
37
(event ) => {
You can’t perform that action at this time.
0 commit comments