-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Use one constructor for NativeReanimatedModule with bridgeless #5868
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
Conversation
There was a problem hiding this 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.
cadeab5 to
659d5e9
Compare
tomekzaw
left a comment
There was a problem hiding this 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! ❤️
Summary
@tomekzaw wanted this badly
Test plan