diff --git a/Libraries/ART/ReactNativeART.js b/Libraries/ART/ReactNativeART.js index 47c5ce635..a54fafdfe 100644 --- a/Libraries/ART/ReactNativeART.js +++ b/Libraries/ART/ReactNativeART.js @@ -392,7 +392,7 @@ class Shape extends React.Component { render() { var props = this.props; var path = props.d || childrenAsString(props.children); - var d = new Path(path).toJSON(); + var d = (path instanceof Path ? path : new Path(path)).toJSON(); return (