react-native-sectioned-slider
v1.0.0
Published
TODO
Downloads
5
Readme
react-native-sectioned-slider
An iOS 11 Control Center inspired Slider for React Native implemented natively using LeonardoCardoso/SectionedSlider.
Install
Install via npm:
npm install react-native-sectioned-slider
Currently only iOS is supported, if you want Android support please create a pull request.
Usage
See the example App for a full usage example.
// View
<SectionedSlider
style={styles.slider}
sections={10}
selectedSection={selected}
onSelectedSectionChange={(s) => setSelected(s)}
sliderColor="grey"
sliderBackgroundColor="darkgrey"
/>
// Styles
slider: {
backgroundColor: 'transparent',
width: 300,
height: 500,
},
Resources
- iOS Sectioned Slider by https://github.com/LeonardoCardoso/SectionedSlider