Skip to content

Conversation

@j-piasecki
Copy link
Member

Description

After the optimization PRs, the event handlers for js/ui thread were collapsed to a single function, but throughout the code, those are still being passed like before those changes - as three separate functions. Those are the same exact functions but under different names. This PR changes that, so that only one function is passed. Ultimately, this function still ends up in three different events, but the split now happens at the leafs instead of the root.

Test plan

Gestures should still work

Comment on lines +244 to +246
shouldUseReanimatedDetector
? reanimatedHandlers.onGestureHandlerReanimatedEvent
: undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

So this is the only callback used by the native side, right?

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.

3 participants