Skip to content

Feature Request: Support for Reanimated v4 #2380

@minhnhat165

Description

@minhnhat165

Why it is needed

Currently, the library supports Reanimated v3, but I have updated my project to use Reanimated v4. After the update, I encountered the following error:

Warning: TypeError: useWorkletCallback is not a function (it is undefined)

This suggests that the library is not compatible with Reanimated v4. Supporting the latest version would help users who want to stay up to date with dependencies and benefit from improvements in Reanimated v4.

Possible implementation

  • Update the library to support Reanimated v4 APIs.
  • Ensure that all hooks and methods (such as useWorkletCallback) are compatible with v4.
  • Add tests to verify compatibility with both v3 and v4, if possible.

Code sample

Currently, using the library with Reanimated v4 produces the error above. Once v4 is supported, the expectation is that the library should work without changes for users on the latest version.

Thank you for considering this feature request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinvalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions