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

feat: preliminary use of react-native-worklets in reanimated #6807

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Dec 11, 2024

Summary

Adding necessary code to detect if react-native-worklets is available and change the build behavior. At the moment we forcefully make it false since react-native-worklets is a stub.

Test plan

CI

@tjzel tjzel changed the title feat: stub of node module react-native-worklets feat: preliminary use of react-native-worklets in reanimated Dec 11, 2024
@tjzel tjzel requested review from tomekzaw and piaskowyk December 11, 2024 12:25
Base automatically changed from @tjzel/worklets/node-module-stub to main December 12, 2024 14:00
@tjzel tjzel added the Check compatibility Trigger a time-consuming compatibility check action label Dec 12, 2024
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Additional find_package and linking here is due to fact that react-native-reanimated/android/src/main/cpp/reanimated/CMakeLists.txt and react-native-reanimated/android/src/main/cpp/worklets/CMakeLists.txt aren't working in separation. Not including the worklets' CMakeLists.txt causes Reanimated to fail at compilation because it depends on it secretly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Check compatibility Trigger a time-consuming compatibility check action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants