diff --git a/index.js b/index.js index d7a84a3..35ae867 100755 --- a/index.js +++ b/index.js @@ -31,6 +31,7 @@ export default class CheckBox extends Component { leftText: PropTypes.string, leftTextView: PropTypes.element, rightText: PropTypes.string, + containerStyle: PropTypes.object, leftTextStyle: PropTypes.object, rightTextView: PropTypes.element, rightTextStyle: PropTypes.object, @@ -46,7 +47,8 @@ export default class CheckBox extends Component { isChecked: false, isIndeterminate: false, leftTextStyle: {}, - rightTextStyle: {} + rightTextStyle: {}, + containerStyle: {} } onClick() { this.setState({ @@ -102,7 +104,7 @@ export default class CheckBox extends Component { underlayColor='transparent' disabled={this.props.disabled} > - <View style={styles.container}> + <View style={[styles.container, this.props.containerStyle]}> {this._renderLeft()} {this._renderImage()} {this._renderRight()}