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

rn-range-slider

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

rn-range-slider

A fully customizable high quality react native Slider component backed by custom native iOS and Android views with ability to select range of values.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
decreased by-0.99%
Maintainers
1
Weekly downloads
 
Created
Source

RangeSlider

A fully customizable high quality react native Slider component backed by custom native iOS and Android views with ability to select range of values.

Demo app

Installation

  1. Add

    • npm: npm install --save rn-range-slider
    • yarn: yarn add rn-range-slider
  2. Link

Usage

RangeSlider should have fixed width and height.

import RangeSlider from 'rn-range-slider';

...

<RangeSlider style={{width: 160, height: 80}} />

...
Properties
PropertyDescriptionTypeDefault Value
onValueChangedA callback to be called when value was changed.
(lowValue, highValue, fromUser) => {}
fromUser parameter is true if the value was changed because of user's interaction (not by setting lowValue or highValue properties). Just like android's OnSeekbarChangeListener.
Number4
rangeEnabledSlider works as an ordinary slider with 1 control if falseBooleantrue
lineWidthWidth of slider's lineNumber4
thumbRadiusRadius of thumb (including border)Number10
thumbBorderWidthBorder width of thumbNumber2
textSizeSize of label textNumber16
labelBorderWidthBorder width of labelNumber2
labelPaddingPadding of label (distance between border and text)Number4
labelBorderRadiusBorder radius of label bubbleNumber4
labelTailHeightHeight of label bubble's tailNumber8
labelGapHeightGap between label and sliderNumber4
textFormatThis string will be formatted with active value and shown in thumbString
"Price: %d" =>
"Price: 75"
if the current value is 75
%d
(just the number)
labelStyleStyle of the label.
Label is not shown if none
String
Currently supported values:
- none
- bubble
bubble
selectionColorColor of selected partString
(#RRGGBB or #AARRGGBB)
#4286f4
blankColorColor of unselected partString
(#RRGGBB or #AARRGGBB)
#7fffffff
thumbColorColor of thumbString
(#RRGGBB or #AARRGGBB)
#ffffff
thumbBorderColorColor of thumb's borderString
(#RRGGBB or #AARRGGBB)
#cccccc
labelBackgroundColorColor label's backgroundString
(#RRGGBB or #AARRGGBB)
#ff60ad
labelBorderColorColor label's borderString
(#RRGGBB or #AARRGGBB)
#d13e85
labelTextColorColor label's textString
(#RRGGBB or #AARRGGBB)
#ffffff
minValueMinimum value of sliderNumber (integer)0
maxValueMaximum value of sliderNumber (integer)100
stepStep of sliderNumber (integer)1
lowValueCurrent value of lower thumbNumber (integer)0
highValueCurrent value of higher thumbNumber (integer)100

Known issues

  • Label's corner radius is not working on iOS

Keywords

FAQs

Package last updated on 15 Jan 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