// Metro module 5166 (f5167). import _classCallCheck from "./_classCallCheck"; import _createClass from "./_createClass"; import _possibleConstructorReturn from "./_possibleConstructorReturn"; import _getPrototypeOf from "./_getPrototypeOf"; import _inherits from "./_inherits"; import { Component, isValidElement } from "react"; import { requireNativeComponent, View, StyleSheet } from "react-native"; import { jsx } from "react/jsx-runtime"; let _excluded, RNCMaskedView; let MaskedView; let env3117 = {}; env3117[10] = function _isNativeReflectConstruct() { let c14709_0; try { c14709_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); } catch ($e) {} const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() { return !!c14709_0; }; env3117[10] = _isNativeReflectConstruct2; return _isNativeReflectConstruct2(); }; _excluded = ["maskElement", "children"]; RNCMaskedView = requireNativeComponent("RNCMaskedView"); MaskedView = function MaskedView(...args) { _classCallCheck(this, MaskedView); const r9 = [...args]; const r8 = _getPrototypeOf(MaskedView); const r26 = _possibleConstructorReturn(this, (0, env3117[10])() ? Reflect.construct(r8, r9, _getPrototypeOf(this).constructor) : r8.apply(this, r9)); r26._hasWarnedInvalidRenderMask = false; return r26; }; _inherits(MaskedView, Component); export default _createClass(MaskedView, [{ key: "render", value: function render() { let r27; const props = this.props; const { maskElement, children, ...rest } = props; if (isValidElement(maskElement)) { r27 = {(0, jsx)(View, { pointerEvents: "none", style: StyleSheet.absoluteFill, children: maskElement })} {children} ; } else { if (!this._hasWarnedInvalidRenderMask) { console.warn("MaskedView: Invalid `maskElement` prop was passed to MaskedView. Expected a React Element. No mask will render."); this._hasWarnedInvalidRenderMask = true; } r27 = {children}; } return r27; } }]);