1.0.2 • Published 5 years ago
@czlowiekenigma/react-native-slider v1.0.2
react-native-slider
React Native Slider which not depends on any native library.
Installation
npm install @czlowiekenigma/react-native-slider
Usage
<Slider value={value} min={0} max={100} vertical={false} style={style} barStyle={barStyle} onChange={this._handleChange}>
//You can place whatever you want (ex. icons) inside the slider
</Slider>
API
- min: PropTypes.number.isRequired
- max: PropTypes.number.isRequired
- step: PropTypes.number
- vertical: PropTypes.bool, slider orientation
- style: PropTypes.any, slider style
- barStyle: PropTypes.any, bar style, you may want to set the backgroundColor prop
- onChange: PropTypes.func, function with a value argument, called when user has stopped changing touching the slider