Skip to content

Commit 9767921

Browse files
committed
style prop is added for main container styling option
1 parent db16f55 commit 9767921

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/BouncyCheckbox.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import styles, {
1414
} from "./BouncyCheckbox.style";
1515

1616
export interface IBouncyCheckboxProps {
17+
style: any;
1718
size?: number;
1819
text?: string;
1920
color?: string;
@@ -120,6 +121,7 @@ class BouncyCheckbox extends React.Component<IBouncyCheckboxProps, IState> {
120121

121122
render() {
122123
const {
124+
style,
123125
textStyle,
124126
fontFamily,
125127
fontSize = 16,
@@ -130,7 +132,7 @@ class BouncyCheckbox extends React.Component<IBouncyCheckboxProps, IState> {
130132
} = this.props;
131133
return (
132134
<TouchableOpacity
133-
style={styles.container}
135+
style={[styles.container, style]}
134136
onPress={this.spring.bind(this, Easing.bounce)}
135137
>
136138
{this.renderCheckIcon()}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-bouncy-checkbox",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Fully customizable animated bouncy checkbox for React Native",
55
"keywords": [
66
"bouncy",

0 commit comments

Comments
 (0)