mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-18 16:13:10 +00:00
Merge pull request #236 from rajpootathar/master
adding dashes to fill as well
This commit is contained in:
commit
5eb6b679be
@ -45,14 +45,15 @@ export default class CircularProgress extends React.PureComponent {
|
||||
const sizeWithPadding = size / 2 + padding / 2;
|
||||
const radius = size / 2 - maxWidthCircle / 2 - padding / 2;
|
||||
|
||||
const backgroundPath = this.circlePath(
|
||||
|
||||
const currentFillAngle = (arcSweepAngle * this.clampFill(fill)) / 100;
|
||||
const backgroundPath = this.circlePath(
|
||||
sizeWithPadding,
|
||||
sizeWithPadding,
|
||||
radius,
|
||||
0,
|
||||
currentFillAngle,
|
||||
arcSweepAngle
|
||||
);
|
||||
const currentFillAngle = (arcSweepAngle * this.clampFill(fill)) / 100;
|
||||
const circlePath = this.circlePath(
|
||||
sizeWithPadding,
|
||||
sizeWithPadding,
|
||||
@ -114,6 +115,7 @@ export default class CircularProgress extends React.PureComponent {
|
||||
stroke={tintColor}
|
||||
strokeWidth={width}
|
||||
strokeLinecap={lineCap}
|
||||
strokeDasharray={strokeDasharray}
|
||||
fill="transparent"
|
||||
/>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user