1.1.0 • Published 3 years ago

number-range-slider v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

number-range-slider

Simple react native slider component without any dependency. It's just a plain react native.

Build Status

Installation

npm i number-range-slider

Common API

NameTypeDefault
widthnumber80% of screen width
heightnumber5% of screen width
minValuenumber0
maxValuenumber100
startingMinValuenumber0
startingMaxValuenumber0
selectedColorstringwhite
unselectedColorstringgrey
buttonColorstringlimegreen
labelColorstringrgba(80,80,80,1)
onMinSlideFinished(value) => string(value)=>{}
onMaxSlideFinished(value) => string(value)=>{}
showMinAndMaxbooleantrue
minAndMaxColorstringgrey
isRangeSliderbooleanfalse
rangeBetweenMinAndMaxnumber50
thinLinebooleantrue
marginTopnumber0
marginBottomnumber0
headerTextstringnull
showLabelWhenSlidingbooleantrue