Skip to content

Commit a69bb65

Browse files
authored
refactor: use positive condition in RNCSafeAreaViewShadowNode.cpp (#580)
* refactor: use positive condition * chore: run ci on changes to common
1 parent 6590313 commit a69bb65

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ios.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
paths:
1414
- '.github/workflows/ios.yml'
1515
- 'ios/**'
16+
- 'common/**'
1617
- 'example/ios/**'
1718
jobs:
1819
ios-build:

common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ inline Style::Length valueFromEdges(
1616
Style::Length edge,
1717
Style::Length axis,
1818
Style::Length defaultValue) {
19-
if (!edge.isUndefined()) {
19+
if (edge.isDefined()) {
2020
return edge;
2121
}
22-
if (!axis.isUndefined()) {
22+
if (axis.isDefined()) {
2323
return axis;
2424
}
2525
return defaultValue;

0 commit comments

Comments
 (0)