Continuous plus or minus the time will be wrong, such as an initial value of 0.05, I added twice after 2.05, when I press the time, his value becomes 1.049999999998.
If YES, incrementing beyond maximumValue sets value to minimumValue; likewise, decrementing below minimumValue sets value to maximumValue. If NO, the stepper does not increment beyond maximumValue nor does it decrement below minimumValue but rather holds at those values. The default value for this property is NO.
Continuous plus or minus the time will be wrong, such as an initial value of 0.05, I added twice after 2.05, when I press the time, his value becomes 1.049999999998.
Can we get this to work with React-Native-Web? In its current form, it looks like it needs to be converted to ES5, and tintColor is not a valid css property.
I want to add by default ADD text . When user tap on it , it calls the renderIncrement and then it will show + and - and value aligned center. How can i do this
I only see the initialValue property, but what if I want update the stepper value ?
Here is the scenario:
I have a text input to work with the simple stepper. and I want to input a number in text input (e.g. 19). Is there a way to set the 19 as the value of stepper ? even the stepper already initialized.
Using the SimpleStepper component in a typescript environment and trying to change some of it's styling like in the picture below:
I encounter a warning which I suspect has something to do with TypeScript: Warning: Invalid argument supplid to oneOfType. Expected an array of check functions, but received string at index 0.
The line that it references is line 44 here:
I have no idea how one would tackle this... Would appreciate your help here.
Hey bro, thanks for making this component - I am using it in an app that I'm building.
I encountered this annoying warning when using in typescript environment:
I temporarily fixed it by adding an index.d.ts file containing
declaremodule'react-native-simple-stepper';
I'm not sure what the process of updating a package to be 'typescript friendly' is, but I don't think it's a lot more than this for this repo (I might be wrong tho). Might be worth doing... I would be happy contribute it if you don't have the time.
Hello, is this normal behaviour, that the "valueChanged" function is called when the component first rendered, (even the inc or dec stepper is not yet pressed). Thankyou