-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Android Support? #3
Comments
It looks like it's mostly supported as it is. I think there's probably another step that need to happen on Android to get circles and pies working. |
I tried this out in the simulator yesterday; ART works, but not like the iOS version. All ART based progress indicators are showing up but in a broken way. I'm tight on time right now and am not working on any projects for Android so I'd be very happy for some help here :-) |
I think |
Yeah, it looks like |
@lesniakania: Thanks for investigating 👍 Let's just wait this one out, it's possible to do a different implementation but it would be a rewrite I just don't have time with right now. Happy to review a PR though! |
@lesniakania & @dangnelson: Commit 748fe4d refactors away from use of |
@lesniakania: Actual drawing code for the progress circle is located here: https://github.com/oblador/react-native-progress/blob/master/Shapes/Arc.js As to what's wrong on android I'm not sure, but this might be related: facebook/react-native#5311 & facebook/react-native#5856 |
I am the author of facebook/react-native#5856, can confirm that arc drawing is broken on Android at the moment. There's a logic error in the code that incorrectly sets arc direction to opposite. Also angles of CCW arcs need to be converted to CW to be displayed properly (Android addArc technically supports CCW drawing direction, but I had weird bugs trying to make it work). |
@dgladkov so you are working on that? I tried changes from https://github.com/facebook/react-native/pull/5856/files but it does not solve my problem. |
@lesniakania the changes fixed my problems with drawing wedges, but there may be some edge cases that I didn't fix. I'm not familiar with this project, could I use example code from the repo to reproduce the bug you're experiencing? |
Tried the example, seems that there's a lot of work to do to support Android:) Even |
Hi, i have a problem in Android, on iOS my chart works, but on Android the animation doesnt run. My chart code:
My animation function:
|
And with Progress.Bar on Android,
|
You know when it will work on Android? |
It's finally here! |
@luisfuertes I had the same issue on android borderRadius. |
facebook/react-native@27ac047
https://github.com/facebook/react-native/releases
The text was updated successfully, but these errors were encountered: