diff --git a/elements/Polyline.js b/elements/Polyline.js index 9e7ad87b..2edb67cd 100644 --- a/elements/Polyline.js +++ b/elements/Polyline.js @@ -18,7 +18,14 @@ export default class extends Component { setNativeProps = (...args) => { //noinspection JSUnresolvedFunction - this.root.getNativeElement().setNativeProps(...args); + var points = [...args][0].points; + if (points) { + if (Array.isArray(points)) { + points = points.join(","); + } + [...args][0].d = `M${extractPolyPoints(points)}` + } + this.root.setNativeProps(...args); }; render() {