Skip to content

Commit

Permalink
fix active background on-stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaferati committed Feb 16, 2019
1 parent a0c0ee4 commit 267852c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exports[`AwesomeButton should render 1`] = `
"backgroundColor": "transparent",
"height": 60,
"opacity": 0,
"paddingBottom": 0,
"width": null,
"zIndex": 10,
}
Expand Down Expand Up @@ -92,7 +91,6 @@ exports[`AwesomeButton should render 1`] = `
"borderColor": null,
"borderRadius": 4,
"borderWidth": 0,
"paddingHorizontal": 12,
},
]
}
Expand Down Expand Up @@ -147,7 +145,6 @@ exports[`AwesomeButton should render a default text children 1`] = `
"backgroundColor": "transparent",
"height": 60,
"opacity": 0,
"paddingBottom": 0,
"width": null,
"zIndex": 10,
}
Expand Down Expand Up @@ -225,7 +222,6 @@ exports[`AwesomeButton should render a default text children 1`] = `
"borderColor": null,
"borderRadius": 4,
"borderWidth": 0,
"paddingHorizontal": 12,
},
]
}
Expand Down Expand Up @@ -257,6 +253,7 @@ exports[`AwesomeButton should render a default text children 1`] = `
"fontWeight": "bold",
"opacity": 1,
"paddingBottom": 0,
"paddingHorizontal": 12,
"paddingTop": 0,
"textAlign": "center",
"transform": Array [
Expand Down
9 changes: 4 additions & 5 deletions src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const memoized = memoize(
return StyleSheet.create({
container: {
height: calcHeight,
width: calcWidth,
paddingBottom
width: calcWidth
},
container__text: {
color: textColor,
fontSize: textSize,
fontFamily: textFontFamily,
paddingBottom,
paddingTop
paddingTop,
paddingHorizontal
},
container__placeholder: {
height: textLineHeight,
Expand Down Expand Up @@ -77,8 +77,7 @@ const memoized = memoize(
borderColor,
borderWidth,
borderRadius,
backgroundColor,
paddingHorizontal
backgroundColor
}
});
}
Expand Down

0 comments on commit 267852c

Please sign in to comment.