-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Change logic of worklet
detection in config
#3745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
If you prefer to split these changes into separate PRs, let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, though I think it makes sense to split it into two PRs, as fixing Animated.Event
is probably a temporary fix, so when we reference it in the future it's going to be cleaner. Should we add a task with a proper fix to the roadmap?
This reverts commit 3418029.
worklet
detection in config & fix Animated.Event
worklet
detection in config
Sure, done!
We could. The question is whether we will forget about it or not 😄 If there's already a task connected with |
I don't think we ever created one. I guess we might add it to the one with fixing |
## Description This PR removes `handleGestureEvent` from `onGestureHandlerAnimatedEvent`. This function was trying to call `Animated.Event`, which is not possible since it is an object. This takes out part of `LogicDetector` logic, however it didn't work anyway and at least standard `NativeDetector` works as it should. > [!NOTE] > It was previously a part of #3745 ## Test plan Tested on current `basic-example`
Description
This PR fixes issue where using
Animated.Event
withoutworklet
callbacks was throwing error. This was because current implementation ofhasWorkletEventHandlers
was checking all functions present inconfig
, includingchangeEventCalculator
(which is in factworklet
).Note
It previously contained #3748
Test plan
Tested on the current
basic-example
app