Skip to content

Automatically assign dispatchesAnimatedEvents - #3650

Merged
m-bert merged 5 commits into
nextfrom
@mbert/automatically-assign-dispatchesAnimatedEvents
Aug 4, 2025
Merged

Automatically assign dispatchesAnimatedEvents#3650
m-bert merged 5 commits into
nextfrom
@mbert/automatically-assign-dispatchesAnimatedEvents

Conversation

@m-bert

@m-bert m-bert commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator

Description

#3646 removed animated native detector action type. However, now we have to pass dispatchesAnimatedEvents to gesture config, what was not done automatically. This PR fixes it.

Test plan

Tested on basic-example

@m-bert
m-bert requested a review from j-piasecki August 1, 2025 09:39
Comment thread packages/react-native-gesture-handler/src/v3/hooks/useGesture.ts
Comment thread packages/react-native-gesture-handler/src/v3/NativeDetector.tsx Outdated
Comment thread packages/react-native-gesture-handler/src/v3/hooks/useGesture.ts
@m-bert
m-bert requested a review from j-piasecki August 1, 2025 13:15
onGestureHandlerAnimatedEvent: event,
onGestureHandlerEvent: (e: any) =>
console.log('onGestureHandlerEvent', e.nativeEvent),
onUpdate: event,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the best, but still better than example crashing on passing onGestureHandlerAnimatedEvent

@m-bert
m-bert merged commit d23c225 into next Aug 4, 2025
1 check passed
@m-bert
m-bert deleted the @mbert/automatically-assign-dispatchesAnimatedEvents branch August 4, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants