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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve code quality of helper classes of createAnimatedComponent #5804
base: main
Are you sure you want to change the base?
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.
Please consider small changes from this review, and fill up "Test plan" section with the following information:
- What examples from our example app you checked to work with your changes
- What platforms did you check, please check web too
_inlinePropsViewDescriptors: ViewDescriptorsSet | null = null; | ||
_inlinePropsMapperId: number | null = null; | ||
_inlineProps: StyleProps = {}; |
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.
_inlinePropsViewDescriptors: ViewDescriptorsSet | null = null; | |
_inlinePropsMapperId: number | null = null; | |
_inlineProps: StyleProps = {}; | |
private _inlinePropsViewDescriptors: ViewDescriptorsSet | null = null; | |
private _inlinePropsMapperId: number | null = null; | |
private _inlineProps: StyleProps = {}; |
@@ -132,14 +132,15 @@ export class InlinePropManager implements IInlinePropManager { | |||
_inlinePropsViewDescriptors: ViewDescriptorsSet | null = null; | |||
_inlinePropsMapperId: number | null = null; | |||
_inlineProps: StyleProps = {}; | |||
private _component: AnimatedComponent; |
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.
Why this is called _component
and in JSPropUpdater we call it _animatedComponent
? Both are animated, aren't they?
Summary
It was getting me mad for quite some time. Here I remove passing
this
to the methods of the helper classes - instead they are passed in the constructor.Test plan
馃殌