1.0.1 • Published 11 months ago

semi-circle-progress-bar v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

semi-circle-progress-bar

Semi Circle Progress Demo

Semi Circle Progress component for React Native which uses only the native Views and requires no external libraries like react-native-svg or similar.

Features

  • Fully customizable
  • Animated
  • Lightweight

Installation

  1. Download package with npm or yarn
npm install semi-circle-progress-bar
yarn add semi-circle-progress-bar
  1. Install pods
cd ios && pod install
  1. Rebuild the project
npx react-native run-android
npx react-native run-ios

Usage

<SemiCircleProgress
    percentage={35}
    progressColor={"green"}
>
    <Text style={{ fontSize: 32, color: "green" }}>35%</Text>
</SemiCircleProgress>

Props

PropDesciptionTypeDefault value
progressShadowColorColor of the unfilled progress barstring"silver"
progressColorColor of the filled progress barstring"steelblue"
interiorCircleColorBg color where component children residestring"white"
circleRadiusRadius of the semi-circlenumber100
progressWidthWidth of the progress barnumber10
percentagePercentage to show in the circlenumber/
exteriorCircleStyleStyle of the whole circle containerViewPropTypes.style/
interiorCircleStyleStyle of the inner circle containerViewPropTypes.style/
animationSpeedSpeed of the spring animationnumber2
initialPercentageSets initial percentage from which to animatenumber0
minValueMin value of the circle progressnumber/
maxValueMax value of the circle progressnumber/
currentValueCurrent value of the circle progressnumber/

Note

Percentage has higher order, if provided component assumes that you calculated it already and ignores minValue, maxValue and currentValue props

Developed By Awais Ibrar

Buy me a Cup of Coffee

https://www.buymeacoffee.com/awaisibrar9

1.0.1

11 months ago

1.0.0

11 months ago