Skip to content
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

Fix JS Compilation Conflict with Reanimated Babel Plugin #81

Merged
merged 2 commits into from
May 28, 2024

Conversation

alabsi91
Copy link
Owner

@alabsi91 alabsi91 commented May 28, 2024

Summary

This PR addresses an issue for compiled commonjs code caused by the Reanimated Babel plugin. The plugin converts worklet functions to arrow functions, which disrupts function hoisting and leads to runtime errors.

Changes

Manually converted all affected worklet functions to arrow functions to ensure compatibility with the Reanimated Babel plugin.

@alabsi91
Copy link
Owner Author

#80

@alabsi91 alabsi91 merged commit 75c43c8 into main May 28, 2024
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.

1 participant