-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Implementation of ART.Path.arcTo on Android Renders Incorrectly #5311
Comments
Hey hswolff, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
This is version of react 0.18.0-rc FYI. |
@hswolff can you describe how you managed to get ReactArt running on Android? no luck |
@gadiel that line isn't necessary, just be sure you're running at least 0.18.0-rc and it worked out of the box for me. |
+1 |
1 similar comment
+1 |
Should this issue be closed by this PR ? |
the problem still persists in RN 0.28 |
And in RN 0.33 |
It seems like there are some different bugs being discussed here because #7049 fixed some but not all things. I think we should close this particular issue but if people are still running into ART + Android + arc problems it would be great to get new issues filed, ideally with rnplay.org links too. Thanks for helping out folks! |
I'm trying to dynamically draw an arc in my react-native application using ART (which is awesome btw).
What I've found is that the Android implementation of
arcTo
behaves widely different than the iOS implementation, with the same JS code powering it.I've created a test case for this issue that you can easily add to your application to see the differences.
Running the above code on iOS produces:
![ios-arcto](https://cloud.githubusercontent.com/assets/322576/12329366/18656900-baae-11e5-92fe-6d35f16c963e.png)
Running the above code on Android produces:
![android-arcto](https://cloud.githubusercontent.com/assets/322576/12329502/aa2b960c-baae-11e5-9625-51f2d96e5f23.png)
For curiosity's sake I changed line 46 from
arcTo
tolineTo
.That produced the following on iOS:
![ios-lineto](https://cloud.githubusercontent.com/assets/322576/12329401/3cc45356-baae-11e5-875e-3fc1de2938a1.png)
And the following on Android:
![android-lineto](https://cloud.githubusercontent.com/assets/322576/12329520/b9ed251a-baae-11e5-8dcd-c4b2294b1192.png)
I imagine the issue resets somewhere in here https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java#L228-L243 however would love some input.
The text was updated successfully, but these errors were encountered: