UNPKG

1.35 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/Ellipse.tsx";import React from'react';import{requireNativeComponent}from'react-native';import{extract}from'../lib/extract/extractProps';import Shape from'./Shape';var Ellipse=function(_Shape){_inherits(Ellipse,_Shape);function Ellipse(){_classCallCheck(this,Ellipse);return _possibleConstructorReturn(this,_getPrototypeOf(Ellipse).apply(this,arguments));}_createClass(Ellipse,[{key:"render",value:function render(){var props=this.props;var cx=props.cx,cy=props.cy,rx=props.rx,ry=props.ry;return React.createElement(RNSVGEllipse,_extends({ref:this.refMethod},extract(this,props),{cx:cx,cy:cy,rx:rx,ry:ry,__source:{fileName:_jsxFileName,lineNumber:26}}));}}]);return Ellipse;}(Shape);Ellipse.displayName='Ellipse';Ellipse.defaultProps={cx:0,cy:0,rx:0,ry:0};export{Ellipse as default};export var RNSVGEllipse=requireNativeComponent('RNSVGEllipse');
2//# sourceMappingURL=Ellipse.js.map
\No newline at end of file