Skip to content

Commit 4bbc9f4

Browse files
machourHoussein Djirdeh
authored andcommitted
fix(android): fix Button layout (#657)
1 parent fa70d90 commit 4bbc9f4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/button.component.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ const sizes = {
7979
paddingBottom: 5,
8080
paddingEnd: 8,
8181
paddingLeft: 8,
82-
marginLeft: 4,
83-
marginRight: 4,
8482
},
8583
textStyle: {
8684
fontSize: normalize(12),
@@ -95,8 +93,6 @@ const sizes = {
9593
paddingBottom: 8,
9694
paddingRight: 14,
9795
paddingLeft: 14,
98-
marginLeft: 6,
99-
marginRight: 6,
10096
},
10197
textStyle: {
10298
fontSize: normalize(14),
@@ -111,8 +107,6 @@ const sizes = {
111107
paddingBottom: 13,
112108
paddingRight: 17,
113109
paddingLeft: 17,
114-
marginLeft: 8,
115-
marginRight: 8,
116110
},
117111
textStyle: {
118112
fontSize: normalize(16),
@@ -152,6 +146,10 @@ const defaultDisabledTextStyle = {
152146
color: '#d2d2d2',
153147
};
154148

149+
const defaultContainerViewStyle = {
150+
borderRadius: 2,
151+
};
152+
155153
export class Button extends Component {
156154
props: {
157155
icon: string,
@@ -178,6 +176,7 @@ export class Button extends Component {
178176
{...this.props}
179177
title={isAndroid ? title.toUpperCase() : title}
180178
raised={isAndroid}
179+
containerViewStyle={defaultContainerViewStyle}
181180
buttonStyle={{
182181
...defaultButtonStyle,
183182
...types[type].buttonStyle,

0 commit comments

Comments
 (0)