diff --git a/ReactCommon/flexlayout/flexlayout/FlexBoxStyle.h b/ReactCommon/flexlayout/flexlayout/FlexBoxStyle.h index b1645e897f2..452944358e7 100644 --- a/ReactCommon/flexlayout/flexlayout/FlexBoxStyle.h +++ b/ReactCommon/flexlayout/flexlayout/FlexBoxStyle.h @@ -82,6 +82,10 @@ class FLEX_LAYOUT_EXPORT FlexBoxStyle { return padding[static_cast(edge)]; } + void setPadding(Edge edge, Dimension dimension) { + padding[static_cast(edge)] = dimension; + } + void setPadding(Edge edge, Float value) { padding[static_cast(edge)] = Dimension(value, Unit::Point); }