From a6346e46f2b6fec500a79792dc937965de2d5ddd Mon Sep 17 00:00:00 2001 From: Marco Cesarato Date: Thu, 21 Nov 2019 16:10:35 +0100 Subject: [PATCH] fix: disable right button Fixed disable right button Closes issues/4 --- Example/package.json | 2 +- index.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/package.json b/Example/package.json index c9053f5..8040177 100644 --- a/Example/package.json +++ b/Example/package.json @@ -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": { diff --git a/index.js b/index.js index 4a5abcc..9839a3c 100644 --- a/index.js +++ b/index.js @@ -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()} diff --git a/package.json b/package.json index 348d9e8..a48e009 100644 --- a/package.json +++ b/package.json @@ -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": {