diff --git a/index.js b/index.js index 07d09f1..58342d3 100755 --- a/index.js +++ b/index.js @@ -41,6 +41,7 @@ export default class CheckBox extends Component { isIndeterminate: PropTypes.bool.isRequired, checkBoxColor: PropTypes.string, disabled: PropTypes.bool, + numberOfLines: PropTypes.number } static defaultProps = { isChecked: false, @@ -67,14 +68,14 @@ export default class CheckBox extends Component { if (this.props.leftTextView)return this.props.leftTextView; if (!this.props.leftText)return null; return ( - {this.props.leftText} + {this.props.leftText} ); } _renderRight() { if (this.props.rightTextView)return this.props.rightTextView; if (!this.props.rightText)return null; return ( - {this.props.rightText} + {this.props.rightText} ); } diff --git a/package.json b/package.json index 658c3e1..1e3427c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-check-box", - "version": "2.1.0", + "version": "2.1.1", "description": "Checkbox component for react native, it works on iOS and Android.", "main": "index.js", "scripts": {