-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Restructure RuntimeDecorator
#1860
Restructure RuntimeDecorator
#1860
Conversation
@@ -16,7 +16,7 @@ void MutableValue::setValue(jsi::Runtime &rt, const jsi::Value &newValue) { | |||
} | |||
}; | |||
|
|||
if (module->isUIRuntime(rt)) { | |||
if (RuntimeDecorator::isWorkletRuntime(rt)) { |
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.
I don't think that RuntimeDecorator should have such methods. Maybe it will fit better with RuntimeManager?
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.
RuntimeDecorator is the one responsible for marking a runtime a "worklet runtime", why shouldn't it also be exposing a method that can determine this?
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.
You have convinced me.
Part 2 of 3
RuntimeDecorator
to use the term "Worklet" instead of "UI", and "React Runtime" instead of "Host Runtime".isHostRuntime
andisUIRuntime
fromNativeReanimatedModule
toRuntimeDecorator
(and make static)