Skip to content

Conversation

bartlomiejbloniarz
Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz commented Jul 10, 2025

Summary

Test plan

@bartlomiejbloniarz bartlomiejbloniarz marked this pull request as draft July 10, 2025 14:44
x = newStyle.getProperty(runtime, "originX").asNumber();
count++;
}
if (newStyle.hasProperty(runtime, "originY")) {
Copy link
Member

Choose a reason for hiding this comment

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

We should add early returns or use else if instead. Once this is done, we can just a boolean to store the information whether there is some custom style or not.

Suggested change
if (newStyle.hasProperty(runtime, "originY")) {
else if (newStyle.hasProperty(runtime, "originY")) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't, the purpose of this class is to aggregate non-props updates in layout animations. We need to parse all of them, and we need to count them all, so that we can calculate how many props updates are there in a given layout animation.

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