diff --git a/ReactCommon/flexlayout/flexlayout/FlexItemStyle.h b/ReactCommon/flexlayout/flexlayout/FlexItemStyle.h index 1627b69bdf7..1a7068e6025 100644 --- a/ReactCommon/flexlayout/flexlayout/FlexItemStyle.h +++ b/ReactCommon/flexlayout/flexlayout/FlexItemStyle.h @@ -132,6 +132,10 @@ class FLEX_LAYOUT_EXPORT FlexItemStyleBase { return margin[static_cast(edge)]; } + void setMargin(Edge edge, Dimension dimension) { + margin[static_cast(edge)] = dimension; + } + void setMargin(Edge edge, Float value) { margin[static_cast(edge)] = Dimension(value, Unit::Point); }