1.0.1 • Published 5 years ago

react-native-custom-stepper v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

🎟 Demo

NumberStepper

⚙️ Installation

$ npm install react-native-custom-stepper --save

I will do my best to maintain backward compatibility for this component throughout its updates. However, due to the nature of the platform and the potential breaking changes between react native releases, the aforementioned might be impossible to achieve.

💡 Props

PropTypeDefaultDescription
autoRepeatbooleantrueUsed to determine whether the stepper should automatically repeat after reaching minValue or maxValue
borderColorstring#000000The stepper's overall border color
borderRadiusnumber8The stepper's outer border radius
borderWidthnumber0The stepper's overall border width
buttonsBackgroundColorstring#7DA453The background color applied to the stepper buttons
buttonsFontColorstring#FFFFFFThe font color applied to the stepper buttons
buttonsFontSizenumber36The font size applied to the stepper buttons
buttonsUnderlayColorstring#CCCCCCThe underlay color applied to the stepper buttons
buttonsWidthnumber50The width applied to the stepper buttons
decrementButtonTextstring-The stepper's decrement button text
incrementButtonTextstring+The stepper's increment button text
initialValuenumber0The initial value of the stepper
labelBackgroundColorstring#AED581The background color applied to the stepper label
labelFontColorstring#FFFFFFThe font color applied to the stepper label
labelFontSizenumber24The font size applied to the stepper label
minValuenumber0The stepper's minimum displayed value
maxValuenumber5The stepper's maximum displayed value
stepValuenumber1The stepper's incremental value
onValueChangefuncN/ACallback that is triggered whenever the stepper's value is modified

🖥 Usage

import NumberStepper from 'react-native-custom-stepper'

🏷 License

Copyright © 2019 Jad Ghadry. Released under the MIT license.