-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
fix(Android): missing negation in check for mismatched frames #2214
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.
LGTM 👍
One refactor to consider
@@ -51,7 +51,7 @@ class RNSScreenComponentDescriptor final | |||
// state update. | |||
if (screenShadowNode.getFrameCorrectionModes().check( | |||
FrameCorrectionModes::Mode::FrameHeightCorrection) && | |||
compareFrameSizes( | |||
!compareFrameSizes( |
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.
We could consider changing the name of this function to something like checkIsFrameSizeEqual
so that it's obvious what it returns.
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 think this is good suggestion. compare
may suggest inequality, right?
I'll do it in separate PR, thanks!
## Description The error check was bad - it reported error each time the frames were the same. Obviously it shoud report frame mismatch. ## Changes Added missing negation. ## Checklist - [x] Ensured that CI passes
…re-mansion#2214) ## Description The error check was bad - it reported error each time the frames were the same. Obviously it shoud report frame mismatch. ## Changes Added missing negation. ## Checklist - [x] Ensured that CI passes
Description
The error check was bad - it reported error each time the frames were the same.
Obviously it shoud report frame mismatch.
Changes
Added missing negation.
Checklist