You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Reanimated worklet recognition on Fabric (#2555)
## Description
On the new architecture, a handler that is using reanimated worklet
should be attached with an action type `REANIMATED_WORKLET`, so it will
send an event directly to reanimatedEventDispatcher, instead of emitting
an event on which reanimated should subscribe as it was on old
architecture. Emitting and handling an event may fail in some cases,
since handler might be an object based on type:
`MutableRefObject<WorkletEventHandler<T> | null>` rather than a
function.
## Test plan
Tested on an example app named 'accordion' for Fabric from reanimated
repo:
https://github.com/software-mansion/react-native-reanimated/blob/main/app/src/examples/OldMeasureExample.tsx#L212
0 commit comments