UNPKG

1.5 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/ForeignObject.tsx";import React from'react';import{requireNativeComponent}from'react-native';import{withoutXY}from'../lib/extract/extractProps';import G from'./G';var ForeignObject=function(_G){_inherits(ForeignObject,_G);function ForeignObject(){_classCallCheck(this,ForeignObject);return _possibleConstructorReturn(this,_getPrototypeOf(ForeignObject).apply(this,arguments));}_createClass(ForeignObject,[{key:"render",value:function render(){var props=this.props;var x=props.x,y=props.y,width=props.width,height=props.height,children=props.children;return React.createElement(RNSVGForeignObject,_extends({ref:this.refMethod},withoutXY(this,props),{x:x,y:y,width:width,height:height,__source:{fileName:_jsxFileName,lineNumber:26}}),children);}}]);return ForeignObject;}(G);ForeignObject.displayName='ForeignObject';ForeignObject.defaultProps={x:'0%',y:'0%',width:'100%',height:'100%'};export{ForeignObject as default};export var RNSVGForeignObject=requireNativeComponent('RNSVGForeignObject');
2//# sourceMappingURL=ForeignObject.js.map
\No newline at end of file