File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,5 @@ const App = () => {
3030 * percentage (default: 80)
3131 * blankColor (default: "#eaeaea")
3232 * donutColor (default: "#43cdcf")
33+ * fillColor (default: "white")
34+ * progressWidth (default: 35)
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ function generateArc(percentage){
3838const CircularProgress = ( {
3939 percentage = 40 ,
4040 blankColor = "#eaeaea" ,
41- donutColor = "#43cdcf" ,
41+ donutColor = "#43cdcf" ,
42+ fillColor = "white" ,
43+ progressWidth = 35 ,
4244 children
4345} ) => {
4446 return < View style = { styles . base } >
@@ -48,7 +50,7 @@ const CircularProgress = ({
4850 d = { `M50 50 L50 0 ${ generateArc ( percentage ) } Z` }
4951 fill = { donutColor }
5052 />
51- { < Circle cx = "50" cy = "50" r = "35" fill = "white" /> }
53+ { < Circle cx = "50" cy = "50" r = { progressWidth } fill = { fillColor } /> }
5254 </ Svg >
5355 < View style = { styles . textView } >
5456 { children }
You can’t perform that action at this time.
0 commit comments