0.1.0 • Published 8 years ago

react-native-multi-range v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

react-native-multi-range

A small multi range slider component for react-native

Props

propsdafaultdescription
type2type of slider, single value = 1, multi value = 2
minVal0min value marker
maxValMAX_RANGEmax value marker
rangenullthe range on which the distance has to be divided
markerWidthnullwidth of the markers
paddingRightnullpadding of the marker from the right edge of the container
leftnullmargin from the left edge of the container
showLabelsfalsewhether to show value labels
setScrollModenoop()A callback function to lock the scroll of the view when slider is active
format(val)=>valFormat the current integer value of the marker
markerStyle{}color value of marker
selectorStyle{}background color value of marker and its height
rangeStyle{}background color value of range line between the 2 markers and its height
onChangenoop()A callback that returns {min, max} values on release of markers

License

MIT @ Dron Rathore