Skip to content

Commit

Permalink
fix: disable right button
Browse files Browse the repository at this point in the history
Fixed disable right button

Closes issues/4
  • Loading branch information
marcocesarato committed Nov 21, 2019
1 parent 813ef6f commit a6346e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
"react-native-input-spinner": "^1.2.7",
"react-native-input-spinner": "^1.2.8",
"react-native-web": "^0.11.5"
},
"prettier": {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ class InputSpinner extends Component {
underlayColor={this._getColorPress()}
onHideUnderlay={this.onHideUnderlay.bind(this)}
onShowUnderlay={this.onShowUnderlay.bind(this, "right")}
disabled={this._isDisabledButtonLeft()}
disabled={this._isDisabledButtonRight()}
style={buttonStyle}
onPress={() => this.increase()}>
{this._renderRightButtonElement()}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-input-spinner",
"version": "1.2.7",
"version": "1.2.8",
"description": "React native input with increase and decrease buttons",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a6346e4

Please sign in to comment.