Skip to content

Commit ce8aa20

Browse files
fix: safeareaview on new arch
1 parent 9db8001 commit ce8aa20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ void RNCSafeAreaViewShadowNode::adjustLayoutWithState() {
8888
defaultMargin);
8989
}
9090

91-
top.points(getEdgeValue(
91+
top = Style::Length::points(getEdgeValue(
9292
edges.top, stateData.insets.top, top.value().unwrapOrDefault(0)));
93-
left.points(getEdgeValue(
93+
left = Style::Length::points(getEdgeValue(
9494
edges.left, stateData.insets.left, left.value().unwrapOrDefault(0)));
95-
right.points(getEdgeValue(
95+
right = Style::Length::points(getEdgeValue(
9696
edges.right, stateData.insets.right, right.value().unwrapOrDefault(0)));
97-
bottom.points(getEdgeValue(
97+
bottom = Style::Length::points(getEdgeValue(
9898
edges.bottom,
9999
stateData.insets.bottom,
100100
bottom.value().unwrapOrDefault(0)));

0 commit comments

Comments
 (0)