Skip to content

Commit

Permalink
Merge pull request #12 from jasurkurbanovinit/master
Browse files Browse the repository at this point in the history
Rearrange styles
  • Loading branch information
WrathChaos authored Jul 10, 2020
2 parents fa7d222 + a661f3b commit 2f9f3dc
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/src/BouncyCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ class BouncyCheckbox extends Component {
} = this.props;
return (
<Animated.View
style={[
iconStyle || _iconContainer(checked, fillColor, unfillColor),
{ transform: [{ scale: springValue }] },
style={[ { transform: [{ scale: springValue }] },
_iconContainer(checked, fillColor, unfillColor), iconStyle,
]}
>
{iconComponent || (
Expand Down Expand Up @@ -82,17 +81,13 @@ class BouncyCheckbox extends Component {
{this.renderCheckIcon()}
<View style={styles.textContainer}>
<Text
style={
textStyle ||
_textStyle(
style={[_textStyle(
this.state.checked,
textColor,
fontFamily,
fontSize,
disableTextDecoration
)
}
>
), textStyle ]}>
{text}
</Text>
</View>
Expand Down

0 comments on commit 2f9f3dc

Please sign in to comment.