1.2.7 • Published 5 years ago

two-part-progress-circle v1.2.7

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

Two Part Progress Circle

IOS and android compatible, react native progress bar to show two part progress of any process.

Features

  • Custom colors
  • Spacer option between ring arcs
  • Custom size/radius
  • Custom ring width
  • Custom ring distance from edge
  • Custom text styles
  • No other dependency other than react native

Prerequisites

react-native

Installation

npm i two-part-progress-circle

Usage

import TwoPartProgressCircle from 'two-part-progress-circle';

//default
 <TwoPartProgressCircle /> 

//all props
 <TwoPartProgressCircle
    categoryOnePercentage={55}
    categoryOneColor='#12CC32'
    categoryTwoPercentage={20}
    categoryTwoColor='#0080ED'
    spacer={true}
    spacerValue={2}
    text="75%"
    textColor="black"
    textSize={15}
    textWeight="500"
    circleRadius={60}
    distanceFromEdge={3}
    ringWidth={2}
 /> 

Props

NameDescriptionTypeDefault
categoryOnePercentagepercentage of first categoryNumber20
categoryTwoPercentagepercentage of first categoryNumber50
categoryOneColorcolor of first category arcString#12CC32
categoryTwoColorcolor of second category arcString#0080ED
circleRadiussize of the progress circleNumber60
distanceFromEdgegap between the progress ring and background circleNumber3
ringWidththickness of progress ringNumber2
spacerpresence or absence of gap between the arcsBooleantrue
spacerValueamount of gap between the arcsNumber2
texttext to display at the center of the circleString70%
textSizesize of textNumber15
textColorcolor of textStringblack
textWeightfont weight of textString500

Author

Purnima Naik

Implementation Details

Example

License

MIT