marcocesarato / react-native-input-spinner

An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
https://marcocesarato.github.io/react-native-input-spinner/
GNU General Public License v3.0
414 stars 34 forks source link

Back to min when reach to zero. #60

Closed yinshurman closed 2 years ago

yinshurman commented 3 years ago

I had two problems with react native 0.64.2 and input spinner 1.7.11.

  1. when the min prop is set < 0 , let's say, -10, then when you decrease from positives or increase from negatives to zero , the spinner immediately jump to the Min value .
  2. when set type prop to real , and precision to higher than 1, let's say, 4, then when you focus on the text input to typing numbers like 0.002 or 1.003 , it is impossible to do that ! because all the zeros are automatically discarded !
jmoussu commented 3 years ago

Negative value don't work for me too. Min -5 and max 5 don't work. Value 0 is never display the behavior of values is broken

dougbradbury commented 2 years ago

+1 to the issue with negative ranges. :( I'm digging in to see if I can fix it.