Skip to content

Commit 6d8c63c

Browse files
committed
Drop non-negative size condition
1 parent a791d94 commit 6d8c63c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

common/cpp/react/renderer/components/rnscreens/RNSFormSheetComponentDescriptor.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ class RNSFormSheetComponentDescriptor final
2929

3030
auto stateData = state->getData();
3131

32-
if (stateData.frameSize.width >= 0 && stateData.frameSize.height >= 0) {
33-
layoutableShadowNode.setSize(
34-
Size{stateData.frameSize.width, stateData.frameSize.height});
35-
}
32+
layoutableShadowNode.setSize(
33+
Size{stateData.frameSize.width, stateData.frameSize.height});
3634

3735
ConcreteComponentDescriptor::adopt(shadowNode);
3836
}

0 commit comments

Comments
 (0)