mirror of
https://github.com/status-im/react-native.git
synced 2025-02-14 02:17:14 +00:00
Summary: **Motivation**: Arc drawing has been broken on Android for some time. dgladkov submitted a PR, which ended up having a bug and was never merged. This PR should fix that bug as well as provide screenshots to prove it works. **Reproducing the Bug:** dgladkov made a simple test app which helps to illustrate the bug. The repo can be found [here](https://github.com/dgladkov/RNArtArcDrawingBug). The demo app illustrates that on iOS, wedges are drawn correctly, but Android only draws full circles. [Direct Link to iOS Before](https://github.com/dgladkov/RNArtArcDrawingBug/blob/master/images/ios.png). [Direct Link to Android Before](https://github.com/dgladkov/RNArtArcDrawingBug/blob/master/images/android.png). **Proof The Bug is Fixed:** [Here is a direct link to Android After pic.](http://i.imgur.com/9dTU2Xn.png) You can see the wedges match the iOS Before screenshot. **What went wrong:** dgladkov's solution relied on Java's modulus, which in fact, implements modulus in a non-standard way. Modulus should a Closes https://github.com/facebook/react-native/pull/7049 Differential Revision: D3234404 Pulled By: spicyj fb-gh-sync-id: 6b85eb42389da6c344ec9723c7f81f61473246b0 fbshipit-source-id: 6b85eb42389da6c344ec9723c7f81f61473246b0
Building React Native for Android
See docs on the website.