File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,4 @@ const App = () => {
3030 * percentage (default: 80)
3131 * blankColor (default: "#eaeaea")
3232 * donutColor (default: "#43cdcf")
33+ * fillColor (default: "white")
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ function generateArc(percentage){
3838const CircularProgress = ( {
3939 percentage = 40 ,
4040 blankColor = "#eaeaea" ,
41- donutColor = "#43cdcf" ,
41+ donutColor = "#43cdcf" ,
42+ fillColor = "white" ,
4243 children
4344} ) => {
4445 return < View style = { styles . base } >
@@ -48,7 +49,7 @@ const CircularProgress = ({
4849 d = { `M50 50 L50 0 ${ generateArc ( percentage ) } Z` }
4950 fill = { donutColor }
5051 />
51- { < Circle cx = "50" cy = "50" r = "35" fill = "white" /> }
52+ { < Circle cx = "50" cy = "50" r = "35" fill = { fillColor } /> }
5253 </ Svg >
5354 < View style = { styles . textView } >
5455 { children }
You can’t perform that action at this time.
0 commit comments