UNPKG

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