-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circular ProgressBar breaks #230
Comments
Do we have any update on this issue? I am facing the exact same issue, only on the Android platform. |
Not yet |
@railsjack there is something we can do to help? |
It would be helpful if you can give me any project to do. :) |
I was able to fix it by using the renderCap prop, using this in instead of lineCap round works fine in iOS and Android |
@joelfsreis, did you manage to use renderCap to get the same visual result as |
发现lineCap={"round"}时,fill的值大于30时,末端正常,小于30末端移出 |
@joelfsreis @l-ichaochao I was never able to recreate the problems Probably only exists on certain android devices. I do highly suspect the problem comes from some floating point rounding issue during computation. |
@aboveyunhai Did you ever try this code on your android device?
|
@railsjack so it could relate to specific device or android version, do you also use expo? Can you make a new project then upgrade |
I don't use expo. And I tried with new upgraded version.
…On Tue, Aug 4, 2020 at 1:38 AM aboveyunhai ***@***.***> wrote:
@railsjack <https://github.com/railsjack> it could relate to specific
device or android version, do you also use expo? Can you make a new project
then upgrade "react-native-svg" to latest version to see if the problems
persists.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#230 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOT54OUQHD6WVZRFSX3NZDR63YZRANCNFSM4KKSC32Q>
.
|
Can you try the above coding change I mention, it's not a bug fix, just some tests. It relates to a trivial bug I found in a very specific case. I can't guarantee these two are related. |
Ok |
Same problem here, i fixed changing line 19 of CircularProgress.js from this: |
@brisma this seem to work, but not in all cases! For example the following parameters breaks it:
|
This is the problem.
<AnimatedCircularProgress
duration={0}
size={100}
fill={
27.36
}
padding={0}
width={6}
rotation={0}
tintColor={"red"}
lineCap="round"
children={value => {
return (
820
);
}}
/>
The text was updated successfully, but these errors were encountered: