testshallpass / react-native-simple-stepper Goto Github PK
View Code? Open in Web Editor NEWA parity version of the iOS UIStepper.
License: MIT License
A parity version of the iOS UIStepper.
License: MIT License
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.
This is an issue to implement autorepeat prop.
autorepeat
A Boolean value that determines whether to repeatedly change the stepper’s value as the user presses and holds a stepper button.
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
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.
As per Apple documentation (Wraps)
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.
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
Every time, the + or - button is triggered, valueChanged callback is triggered causing the initialValue to be "frozen" to its mounted state.
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
declare module '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.
Render simple-stepper with valueChanged function prop and notice valueChanged called without user action on increment or decrement.
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.
Inside componentWillRecieveProps
it uses this.state.value
that does not exist any longer.
version: 2.0.0
Hey again Brian,
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.
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.
npm
installationyarn
installation commandIs it possible to avoid mirroring the component when app is RLT? (when app is RTL + button is at left side that is meaningless)
This is an issue to implement isContinuous prop.
isContinuous
A Boolean value that determines whether to send value changes during user interaction or after user interaction ends.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.