Skip to content

Commit a661f3b

Browse files
committed
styles rearranged
1 parent fa7d222 commit a661f3b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lib/src/BouncyCheckbox.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ class BouncyCheckbox extends Component {
4747
} = this.props;
4848
return (
4949
<Animated.View
50-
style={[
51-
iconStyle || _iconContainer(checked, fillColor, unfillColor),
52-
{ transform: [{ scale: springValue }] },
50+
style={[ { transform: [{ scale: springValue }] },
51+
_iconContainer(checked, fillColor, unfillColor), iconStyle,
5352
]}
5453
>
5554
{iconComponent || (
@@ -82,17 +81,13 @@ class BouncyCheckbox extends Component {
8281
{this.renderCheckIcon()}
8382
<View style={styles.textContainer}>
8483
<Text
85-
style={
86-
textStyle ||
87-
_textStyle(
84+
style={[_textStyle(
8885
this.state.checked,
8986
textColor,
9087
fontFamily,
9188
fontSize,
9289
disableTextDecoration
93-
)
94-
}
95-
>
90+
), textStyle ]}>
9691
{text}
9792
</Text>
9893
</View>

0 commit comments

Comments
 (0)