Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tjzel
Copy link
Contributor

@tjzel tjzel commented Mar 18, 2024

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

馃殌

Copy link
Contributor

@Latropos Latropos left a 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

Comment on lines 132 to 134
_inlinePropsViewDescriptors: ViewDescriptorsSet | null = null;
_inlinePropsMapperId: number | null = null;
_inlineProps: StyleProps = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
_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;
Copy link
Contributor

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?

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.

None yet

2 participants