react-native-slider-design
A react-native component customable developed in typescript !
Plateform | Compatibility |
---|---|
Android | YES |
IOS | YES |
Instalation
npm -i react-native-slider-design
or
yarn add react-native-slider-design
Basic Usage
Becarful the basic usage use the package react-native-vector-icons package to render SVG icons. If you are not using this package you also can use any component you want.
;;; ; ; ;
Props
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
datas | SliderType | NO | [ { } ] | Datas used to render the slider |
startIndex | number | YES | 0 | The start index of the slider |
opacity | boolean | Yes | 1 | If true the opacity will be set at 0.2 |
style | StyleSheet | YES | { } | Styling the component use container structure to styling the slider's container / use the ActiveItem to style the active item / use the InactiveItem to style the active items. |
MIT Licensed