Skip to content

saigontechnology/react-native-svg-circular-progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Svg Circular Progress

A circular progress chart using react-native-svg

sample <>

Installation

npm install react-native-svg react-native-svg-circular-progress --save
react-native link react-native-svg

Usage

import {CircularProgress} from 'react-native-svg-circular-progress'

const App = () => {
  const percentage = 40
  return <View>
    <CircularProgress percentage={percentage}>
      <View>
        <Text>{percentage}%</Text>
      </View>
    </CircularProgress>
  </View>
}

Props

  • percentage (default: 80)
  • blankColor (default: "#eaeaea")
  • donutColor (default: "#43cdcf")
  • fillColor (default: "white")
  • progressWidth (default: 35)
  • size (default: 100)