[ART]fix stroke bug

Summary:Fix a stroke bug.
Stroke path will be coverd by fill layer.
Fix it by stroke path after fill is done
Closes https://github.com/facebook/react-native/pull/7092

Differential Revision: D3203188

Pulled By: spicyj

fb-gh-sync-id: 9b950372822da4dc520552c0c31aa3435750a0a3
fbshipit-source-id: 9b950372822da4dc520552c0c31aa3435750a0a3
This commit is contained in:
Horcrux 2016-04-20 12:49:08 -07:00 committed by Facebook Github Bot 3
parent 85f7569ce6
commit 4e5c85b6bb
1 changed files with 2 additions and 2 deletions

View File

@ -101,10 +101,10 @@ public class ARTShapeShadowNode extends ARTVirtualNode {
throw new JSApplicationIllegalArgumentException(
"Shapes should have a valid path (d) prop");
}
if (setupStrokePaint(paint, opacity)) {
if (setupFillPaint(paint, opacity)) {
canvas.drawPath(mPath, paint);
}
if (setupFillPaint(paint, opacity)) {
if (setupStrokePaint(paint, opacity)) {
canvas.drawPath(mPath, paint);
}
restoreCanvas(canvas);