react-native-circular-progress icon indicating copy to clipboard operation
react-native-circular-progress copied to clipboard

clipped line cap on android

Open dexter-juntilla opened this issue 6 years ago • 11 comments

<AnimatedCircularProgress
  size={104}
  width={10}
  fill={25}
  tintColor="#816AAD"
  rotation={0}
  lineCap="round"
/>

Screenshot_1563852417

dexter-juntilla avatar Jul 23 '19 03:07 dexter-juntilla

temporary workaround

let fill = this.props.percentage;

if (fill === 25) {
 fill = 24;
} else if (fill === 50) {
 fill = 49;
}

<AnimatedCircularProgress
  {...otherProps}
  fill={fill}
/>

dexter-juntilla avatar Jul 23 '19 03:07 dexter-juntilla

I tried the sample code provided on iOS and did not see the bug. Unfortunately I have no Android device around to test with. If you find out what is the problem you could submit a PR. Keeping this open for now

markusl avatar Jul 26 '19 10:07 markusl

We are experiencing similar issues, but with more severe distortions on android 7.1.1

If anyone has any Idea where to look to fix those, I would be happy to investigate it further.

Screen Shot 2019-12-09 at 5 48 07 PM Screen Shot 2019-12-09 at 5 48 11 PM

schumannd avatar Dec 09 '19 16:12 schumannd

I have the same problem @schumannd, when the fill percentage is 30 the progress bar get square. The code is that:

<AnimatedCircularProgress size={210} width={20} lineCap="round" fill={30} prefill={0} duration={0} tintColor="#0173B1" renderCap={({ center }) => <Circle cx={center.x} cy={center.y} r="10" fill="#0173B1" />} backgroundColor="#FFF"> {() => (<> <Text style={styles.averageNumber}>3</Text> <Text style={styles.averageText}>Média</Text> </>)} </AnimatedCircularProgress>

image

ArturLansoni avatar Dec 27 '19 13:12 ArturLansoni

@ArturLansoni can you say which android API versions this occurrs at?

schumannd avatar Dec 27 '19 23:12 schumannd

@schumannd I'm using Android 7.1.1

ArturLansoni avatar Dec 30 '19 17:12 ArturLansoni

Bildschirmfoto 2020-01-17 um 11 42 59 Bildschirmfoto 2020-01-17 um 11 43 09

Same problem here. Working fine with iOS, clipped cap with Android 7.0.

kathigeiger avatar Jan 17 '20 10:01 kathigeiger

Should we open a new issue? This seems to be different/more sever from the original issue.

schumannd avatar Jan 17 '20 11:01 schumannd

We also experience the clipping issue with round line caps on android.

bobsmits avatar May 07 '20 09:05 bobsmits

Also having the same issue on the Android platform

joelfsreis avatar Jun 30 '20 16:06 joelfsreis

Screen Shot 2021-09-12 at 6 56 14 PM I am having the same issue, it is working for ios but not for android, it is not rounded from the other side

Eliajn avatar Sep 12 '21 16:09 Eliajn