react-native-multi-slider-alischv1
v0.0.18
Published
Android and iOS supported pure JS slider component with multiple markers for React Native
Downloads
4
Maintainers
Readme
react-native-multi-slider
Pure JS react native slider component with one or two markers. Options to customize track, touch area and provide customer markers and callbacks for touch events and value changes.
Examples
cd example
npm install
react-native run-ios
react-native run-android
Getting Started
Installation
$ npm install --save @ptomasroos/react-native-multi-slider
Usage in a ScrollView
enableScroll = () => this.setState({ scrollEnabled: true });
disableScroll = () => this.setState({ scrollEnabled: false });
render() {
return (
<ScrollView scrollEnabled={this.state.scrollEnabled}>
<MultiSlider
...
onValuesChangeStart={this.disableScroll}
onValuesChangeFinish={this.enableScroll}
/>
<ScrollView>
);