New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-simple-stepper

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-simple-stepper

A super simple react-native implementation of the classic UIStepper from iOS.

  • 1.12.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-simple-stepper

Platform npm version npm version Build Status License

screenshot screenshot screenshot screenshot

A super simple react-native implementation of the UIStepper control from iOS.

Installation

npm i react-native-simple-stepper --save

Usage

import SimpleStepper from 'react-native-simple-stepper'
//...
render() {
  return (
    <SimpleStepper valueChanged={(value) => this.valueChanged(value)} />
  )
}
valueChanged(value) {
  // If you want to set the value to a certain decimal point you can like so:
  const displayValue = value.toFixed(2)
  this.setState({
     displayValue: displayValue
  })
  // ...
}
//...

Demo

screenshot

Props

NameTypeDescriptionDefault
initialValueNumberinitial value0
minimumValueNumberminimum value0
maximumValueNumbermaximum value10
stepValueNumberstep value (i.e. increment by 10)1
backgroundColorStringbackground colortransparent
tintColorStringcolor for border, divider and imagesblue
paddingNumberstepper padding4
valueChangedFunctionFires when the value changes and the value will be passed down for processing like display or calculationsnull
incrementImageString or Numbernetwork or local imagerequire('./assets/increment.png')
decrementImageString or Numbernetwork or local imagerequire('./assets/decrement.png')
tintOnIncrementImageBooleanwhether or not you want tintColor applied to increment imagetrue
tintOnDecrementImageBooleanwhether or not you want tintColor applied to decrement imagetrue
imageHeightNumbernetwork image height36
imageWidthNumbernetwork image width36
activeOpacityNumbertouch opacity0.4
disabledOpacityNumberwhen step button is disabled0.5

Keywords

FAQs

Package last updated on 23 May 2017

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