Skip to content

Commit 57eb15b

Browse files
author
Carlos Campos
committed
progress bar width
1 parent 7b72a73 commit 57eb15b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CircularProgress.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const CircularProgress = ({
4040
blankColor = "#eaeaea",
4141
donutColor = "#43cdcf",
4242
fillColor = "white",
43+
progressWidth = 35,
4344
children
4445
}) => {
4546
return <View style={styles.base}>
@@ -49,7 +50,7 @@ const CircularProgress = ({
4950
d={`M50 50 L50 0 ${generateArc(percentage)} Z`}
5051
fill={donutColor}
5152
/>
52-
{<Circle cx="50" cy="50" r="35" fill={fillColor}/>}
53+
{<Circle cx="50" cy="50" r={progressWidth} fill={fillColor}/>}
5354
</Svg>
5455
<View style={styles.textView}>
5556
{children}

0 commit comments

Comments
 (0)