mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-25 16:25:58 +00:00
fix dashedBackgroundStyle parsing issue
This commit is contained in:
parent
f3d314a8e4
commit
dd7156712d
@ -86,9 +86,9 @@ export default class CircularProgress extends React.PureComponent {
|
||||
}
|
||||
|
||||
const dashedBackgroundStyle = dashedBackground.gap > 0
|
||||
? `${dashedBackground.width}, ${dashedBackground.gap}`
|
||||
: dashedBackground;
|
||||
|
||||
? dashedBackground
|
||||
: { width:0, gap:0 };
|
||||
|
||||
const strokeDasharray = Object.values(dashedBackgroundStyle)
|
||||
.map(value => parseInt(value));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user