himelbrand / react-native-numeric-input

a stylish numeric input for react native
MIT License
150 stars 98 forks source link

[BUG] - Validation problem to number under 0.1 #57

Open rodrigues-t opened 4 years ago

rodrigues-t commented 4 years ago

Describe the bug I set minValue to 0.01 and when a try to type '0.01' the component sets the value to '0' after I enter the zero after the point ('0.0'). So, I never can type a number less than 0.1 if the min value is not zero. In another hand, with min button it works perfectly so that I can go from 0.1 to 0.09 just touching the min button.

<NumericInput valueType={'real'} minValue={0.01} maxValue={2} step={0.01}
value={dose} onChange={value => setDose(value)} />

Enviorment: