File tree Expand file tree Collapse file tree 5 files changed +649
-12
lines changed
components/createButtonComponent Expand file tree Collapse file tree 5 files changed +649
-12
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,20 @@ export const createButtonComponent = (
104
104
105
105
const leftIconBase : TextStyle = { } ;
106
106
107
- if ( buttonStyle . horizontalPadding ) {
108
- leftIconBase . paddingLeft = buttonStyle . horizontalPadding ;
107
+ if ( buttonStyle . iconSpacing ) {
108
+ leftIconBase . paddingLeft = buttonStyle . iconSpacing ;
109
109
}
110
110
111
111
const rightIconBase : TextStyle = { } ;
112
112
113
- if ( buttonStyle . horizontalPadding ) {
114
- rightIconBase . paddingRight = buttonStyle . horizontalPadding ;
113
+ if ( buttonStyle . iconSpacing ) {
114
+ rightIconBase . paddingRight = buttonStyle . iconSpacing ;
115
115
}
116
116
117
117
const leftAndRightIconsBase : TextStyle = { } ;
118
118
119
- if ( buttonStyle . horizontalPadding ) {
120
- leftAndRightIconsBase . paddingHorizontal = buttonStyle . horizontalPadding ;
119
+ if ( buttonStyle . iconSpacing ) {
120
+ leftAndRightIconsBase . paddingHorizontal = buttonStyle . iconSpacing ;
121
121
}
122
122
123
123
const styles = StyleSheet . create ( {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const ExampleDropDown = createButtonComponent({
13
13
fontSize: 16 ,
14
14
horizontalPadding: 10 ,
15
15
verticalPadding: 2 ,
16
+ iconSpacing: 5 ,
16
17
default: {
17
18
backgroundColor: ` yellow ` ,
18
19
color: ` blue ` ,
You can’t perform that action at this time.
0 commit comments