[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:
parent
85f7569ce6
commit
4e5c85b6bb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue