From 6a42d731a989b3a0cd20e14232de34d122b53a53 Mon Sep 17 00:00:00 2001
From: HausbaPSI <99184308+HausbaPSI@users.noreply.github.com>
Date: Tue, 22 Mar 2022 18:58:18 +0100
Subject: [PATCH] added disabled option for buttons
Added functionality to disable buttons if editable props are set to true and enable buttons otherwise this is the solution to an open issue: https://github.com/himelbrand/react-native-numeric-input/issues/44#issue-497626339
---
NumericInput/NumericInput.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/NumericInput/NumericInput.js b/NumericInput/NumericInput.js
index 29255483..99e878d8 100644
--- a/NumericInput/NumericInput.js
+++ b/NumericInput/NumericInput.js
@@ -220,23 +220,23 @@ export default class NumericInput extends Component {
this.ref = ref} onBlur={this.onBlur} onFocus={this.onFocus} />
-
)
else return (
-
+
this.ref = ref} onBlur={this.onBlur} onFocus={this.onFocus} />
-
+
)