Skip to content

Commit

Permalink
fix(Android): missing negation in check for mismatched frames (#2214)
Browse files Browse the repository at this point in the history
## 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
kkafar authored Jun 27, 2024
1 parent 114fbaa commit 572e601
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ class RNSScreenComponentDescriptor final
// state update.
if (screenShadowNode.getFrameCorrectionModes().check(
FrameCorrectionModes::Mode::FrameHeightCorrection) &&
compareFrameSizes(
!compareFrameSizes(
screenShadowNode.layoutMetrics_.frame.size,
stateData.frameSize)) {
LOG(ERROR)

0 comments on commit 572e601

Please sign in to comment.