Skip to content

Fix onUpdate crash - #3636

Merged
m-bert merged 2 commits into
nextfrom
@mbert/fix-update-crash
Jul 25, 2025
Merged

Fix onUpdate crash #3636
m-bert merged 2 commits into
nextfrom
@mbert/fix-update-crash

Conversation

@m-bert

@m-bert m-bert commented Jul 25, 2025

Copy link
Copy Markdown
Collaborator

Description

#3630 introduced automatic support for Animated.Event in onUpdate callback. However, I've missed the fact that this callback may not be defined. This PR fixes this crash.

Test plan

Tested on current basic-example without specifying onUpdate

@m-bert
m-bert changed the base branch from main to next July 25, 2025 08:05
Comment thread packages/react-native-gesture-handler/src/v3/hooks/utils.ts
@m-bert
m-bert requested a review from j-piasecki July 25, 2025 08:12
@m-bert
m-bert merged commit ff64e3f into next Jul 25, 2025
1 check passed
@m-bert
m-bert deleted the @mbert/fix-update-crash branch July 25, 2025 09:13
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