UNPKG

1.2 kBJavaScriptView Raw
1import _extends from"@babel/runtime/helpers/extends";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";var _jsxFileName="/Users/msand/WebstormProjects/react-native-svg/src/elements/Path.tsx";import React from'react';import{requireNativeComponent}from'react-native';import{extract}from'../lib/extract/extractProps';import Shape from'./Shape';var Path=function(_Shape){_inherits(Path,_Shape);function Path(){_classCallCheck(this,Path);return _possibleConstructorReturn(this,_getPrototypeOf(Path).apply(this,arguments));}_createClass(Path,[{key:"render",value:function render(){var props=this.props;return React.createElement(RNSVGPath,_extends({ref:this.refMethod},extract(this,props),{d:props.d,__source:{fileName:_jsxFileName,lineNumber:14}}));}}]);return Path;}(Shape);Path.displayName='Path';export{Path as default};export var RNSVGPath=requireNativeComponent('RNSVGPath');
2//# sourceMappingURL=Path.js.map
\No newline at end of file