1.2.3 • Published 4 years ago

rn-dashed-circular-indicator v1.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

rn-dashed-circular-indicator

Dashed Circular Indicator for React Native using react-native-svg.

Installation

$ npm install rn-dashed-circular-indicator --save

SVG based components

To use the this component, you need to install React Native SVG in your project.

Usage

import { DashedCircularIndicator } from "rn-dashed-circular-indicator";

<DashedCircularIndicator selectedValue={8} />
<DashedCircularIndicator
    selectedValue={25}
    maxValue={50}
    textColor='#f00'
    activeStrokeColor='#cc6600'
    withGradient
/>
<DashedCircularIndicator
    selectedValue={75}
    maxValue={100}
    radius={100}
    activeStrokeColor='#0f4fff'
    withGradient
/>
<DashedCircularIndicator
    selectedValue={55}
    maxValue={90}
    radius={80}
    activeStrokeColor='#cc6633'
    withGradient
    anticlockwise
    containerStyle={{ padding: 0 }}
/>

Properties

PropDescriptionDefault
maxValueMax Value of the progress.10
selectedValueSelected Value of the progress.0
radiusRadius of the Circular Progress Bar.60
strokeWidthStroke Width of the progress.6
labelThis is any label that needs to be shown below the progress number.
labelFontSizeFont Size for Label.#000
activeStrokeColorActive Stroke.#05a168
inactiveStrokeColorInactive Stroke Color.#ddd
backgroundColorBackground Color inside the progress circle.#fff
textColorColor of the Number Text, which shows the active number.#000
valueFontSizeFont Size of the number Text.
withGradientWhether to apply gradient on the outer Progress bar.false
anticlockwiseWhether progress bar in Clockwise or not (default: Clockwise).false
initialAngularDisplacementAny initial Angular Displacement.0
containerStyleContainer Style.{}