Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-custom-stepper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-custom-stepper

A customizable React Native number stepper component.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🎟 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.

Keywords

FAQs

Package last updated on 29 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc