Skip to content

Commit 564953c

Browse files
authored
Button - support paddings modifier (#1989)
1 parent 2b55073 commit 564953c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/button/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class Button extends PureComponent<Props, ButtonState> {
321321
render() {
322322
const {onPress, disabled, style, testID, animateLayout, modifiers, forwardedRef, ...others} = this.props;
323323
const shadowStyle = this.getShadowStyle();
324-
const {margins} = modifiers;
324+
const {margins, paddings} = modifiers;
325325
const backgroundColor = this.getBackgroundColor();
326326
const outlineStyle = this.getOutlineStyle();
327327
const containerSizeStyle = this.getContainerSizeStyle();
@@ -338,6 +338,7 @@ class Button extends PureComponent<Props, ButtonState> {
338338
this.isLink && this.styles.innerContainerLink,
339339
shadowStyle,
340340
margins,
341+
paddings,
341342
{backgroundColor},
342343
borderRadiusStyle,
343344
outlineStyle,

0 commit comments

Comments
 (0)