Skip to content

Resolve worklets via gradle#8866

Closed
radoslawrolka wants to merge 1 commit intosoftware-mansion:mainfrom
radoslawrolka:rolkrado/resolve-worklets-config
Closed

Resolve worklets via gradle#8866
radoslawrolka wants to merge 1 commit intosoftware-mansion:mainfrom
radoslawrolka:rolkrado/resolve-worklets-config

Conversation

@radoslawrolka
Copy link
Copy Markdown
Contributor

Summary

This PR changes the way react-native-reanimated depends on react-native-worklets in its Android native build. Instead of directly linking to the worklets .so file (hardcoded path), it uses CMake's find_package to locate the worklets config package.

This approach leverages CMake's package management capabilities. It ensures that the worklets library is properly found and linked during the build process, even if the build output paths change. This also aligns with best practices for managing dependencies in CMake-based projects.
Also resolves the build order issues in RNRepo when libraries configuration is changed with precompiled packages.

NOTE: tested on basic RN apps, not in more complex setups like monorepos or other.

Test plan

  • run the example apps and ensure reanimated features work as expected

@tomekzaw
Copy link
Copy Markdown
Member

Let's also revert other changes that were introduced in #7866.

@tjzel
Copy link
Copy Markdown
Collaborator

tjzel commented Jan 30, 2026

Closing in favor of #8685

@tjzel tjzel closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants