"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _nativeAli = _interopRequireDefault(require("./native-ali"));

var _react = _interopRequireDefault(require("react"));

var _ali = require("remax/ali");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
var _default = function _default(_ref) {
  var children = _ref.children,
      className = _ref.className,
      onHidden = _ref.onHidden,
      onVisible = _ref.onVisible,
      height = _ref.height,
      perf = _ref.perf;
  return /*#__PURE__*/_react.default.createElement(_nativeAli.default, {
    perf: perf,
    "class-name": className,
    bindvisible: onVisible,
    height: height,
    bindhidden: onHidden
  }, children || /*#__PURE__*/_react.default.createElement(_ali.View, {
    style: {
      height: '1px',
      width: '1px'
    }
  }));
};

exports.default = _default;