Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Feb 25, 2025
1 parent 51bdb8b commit bd5762f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/docs/guides/reanimated/reanimated.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,17 @@ You can checkout [example](https://github.com/lodev09/react-native-true-sheet/tr
```tsx
import { useEvent, useHandler } from 'react-native-reanimated'

type PageScrollHandler = (sizeInfo: SizeInfo, context: unknown) => void
type DragChangeHandler = (sizeInfo: SizeInfo, context: unknown) => void

export const useDragChangeHandler = (
handler: PageScrollHandler,
handler: DragChangeHandler,
dependencies: DependencyList = []
) => {
const handlers = {
onDragChange: handler,
}

const { context, doDependenciesDiffer } = useHandler(
{
onDragChange: handler,
},
dependencies
)
const { context, doDependenciesDiffer } = useHandler(handlers, dependencies)

return useEvent<DragChangeEvent>(
(event) => {
Expand Down

0 comments on commit bd5762f

Please sign in to comment.