UNPKG

@cantoo/rn-svg

Version:
36 lines 1.03 kB
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import React from 'react'; import { extract } from '../lib/extract/extractProps'; import Shape from './Shape'; import { RNSVGEllipse } from './NativeComponents'; export default class Ellipse extends Shape { static displayName = 'Ellipse'; static defaultProps = { cx: 0, cy: 0, rx: 0, ry: 0 }; render() { const { props } = this; const { cx, cy, rx, ry } = props; const ellipseProps = { ...extract(this, props), cx, cy, rx, ry }; return /*#__PURE__*/React.createElement(RNSVGEllipse, _extends({ ref: this.refMethod }, ellipseProps)); } } //# sourceMappingURL=Ellipse.js.map