Skip to content

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

Notifications You must be signed in to change notification settings

AwaisIbrar8/semiCircleProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

Prop Desciption Type Default value
progressShadowColor Color of the unfilled progress bar string "silver"
progressColor Color of the filled progress bar string "steelblue"
interiorCircleColor Bg color where component children reside string "white"
circleRadius Radius of the semi-circle number 100
progressWidth Width of the progress bar number 10
percentage Percentage to show in the circle number /
exteriorCircleStyle Style of the whole circle container ViewPropTypes.style /
interiorCircleStyle Style of the inner circle container ViewPropTypes.style /
animationSpeed Speed of the spring animation number 2
initialPercentage Sets initial percentage from which to animate number 0
minValue Min value of the circle progress number /
maxValue Max value of the circle progress number /
currentValue Current value of the circle progress number /

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

Check out my profile

https://bento.me/iamawais

Buy me a Cup of Coffee

https://www.buymeacoffee.com/awaisibrar9

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published