45 lines
1.6 KiB
React
45 lines
1.6 KiB
React
// Metro module 8600 (f8601).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import _getPrototypeOf from "./_getPrototypeOf";
|
|
import _inherits from "./_inherits";
|
|
import Module8601 from "./Module8601";
|
|
import { withoutXY } from "./extractProps";
|
|
import Module8545 from "./Module8545";
|
|
let ForeignObject;
|
|
let env5564 = {};
|
|
env5564[7] = function _isNativeReflectConstruct() {
|
|
let c16664_0;
|
|
try {
|
|
c16664_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c16664_0;
|
|
};
|
|
env5564[7] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
ForeignObject = function ForeignObject() {
|
|
_classCallCheck(this, ForeignObject);
|
|
const r8 = _getPrototypeOf(ForeignObject);
|
|
return _possibleConstructorReturn(this, (0, env5564[7])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
|
|
};
|
|
_inherits(ForeignObject, Module8545);
|
|
const r37 = _createClass(ForeignObject, [{
|
|
key: "render",
|
|
value: function render() {
|
|
const props = this.props;
|
|
const { x: r6, y: r3, width, height, children } = props;
|
|
return <Module8601 ref={(a0) => this.refMethod(a0)} {...withoutXY(this, props)} x={r6} y={r3} width={width} height={height}>{children}</Module8601>;
|
|
}
|
|
}]);
|
|
r37.displayName = "ForeignObject";
|
|
r37.defaultProps = {
|
|
x: "0%",
|
|
y: "0%",
|
|
width: "100%",
|
|
height: "100%"
|
|
};
|
|
export default r37;
|