Skip to content

Conversation

@tjzel
Copy link
Collaborator

@tjzel tjzel commented Apr 4, 2024

Summary

@tomekzaw wanted this badly

Test plan

Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

@tjzel Thanks again for your effort.

General feedback: Why don't we just instantiate JSScheduler before calling NativeReanimatedModule ctor? This way we can avoid adding JSScheduleDependencyHolder to our codebase class at all.

The only obstacle is that we need to pass rnRuntime along with jsInvoker (in bridgeful mode) but this is not a real problem as we luckily have access to it without any problem. In bridgeless mode, we don't need rnRuntime at all.

@tjzel tjzel marked this pull request as ready for review April 5, 2024 10:07
Base automatically changed from @wolewicki/bridgeless-mode-with-runtime-executor to main April 5, 2024 10:39
@tjzel tjzel force-pushed the @tjzel/unify-constructor branch from cadeab5 to 659d5e9 Compare April 5, 2024 10:43
Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! ❤️

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.

2 participants