All Projects → arpitBhalla → rn-arc-slider

arpitBhalla / rn-arc-slider

Licence: MIT license
React Native component for arc slider using React Native Svg

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to rn-arc-slider

vue-round-slider
A round slider component for Vue JS, with range slider support. Also it can be any kind of arc slider such as pie shape, half / semi-circle, quarter circle shape sliders.
Stars: ✭ 45 (+73.08%)
Mutual labels:  circular-slider, arc-slider

React Native Arc Slider

MIT Issues Installs Start

🚀 Getting Started

Install

  • Install the library and react-native-svg

    npm i --save rn-arc-slider react-native-svg
  • Link native code for SVG

    npx react-native link react-native-svg

Usage

import ArcSlider from "rn-arc-slider";
<ArcSlider
  value={value}
  onChange={setValue}
  trackColor={"red"}
  showThumbText
  showText
/>
Slider with Thumb
Progress Bar
Arc Slider without center text

Props

Prop Name Type Default Description
trackRadius number 100 Radius of Circular Slider
thumbRadius number 12 Size of Thumb
trackWidth number 5 Size of Track
value number 0 Value between minValue to maxValue
minValue number 0 Minimum value
maxValue number 100 Maximum value
onChange ((angle: number) => any) none onChange Handler
trackColor string #2089dc Color for Track
trackTintColor string #e1e8ee Color for Track Tint
thumbColor string #2089dc Color for Thumb
thumbTextColor string white Color for Text on Thumb
thumbTextSize number 10 Font size for Text on Thumb
showThumbText boolean false Show text on center of thumb
noThumb boolean false Show Thumb on Track
showText boolean false Show text on center of circle
textColor string #2089dc Text color for center of circle
textSize number 80 Text Size for center of circle
maxAngle number 359.9 Maximum arc angle in degrees i.e. its range is 0 to 359
minAngle number 0 Minimum arc angle in degrees i.e. its range is 0 to 359

🤝 Contribution

All PRs are welcome

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤️ by Arpit Bhalla

 

Back to top

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].