"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _maps = _interopRequireDefault(require("@rnmapbox/maps"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
 * Images props
 *
 * @category Props
 */

/**
  @category Component
 */
const Images = props => {
  const {
    images,
    children,
    onImageMissing
  } = props;
  // Mapbox.Images限制了children只能为Mapbox.Image类型
  const convertedChildren = _react.default.Children.toArray(children).map(c => /*#__PURE__*/_react.default.createElement(_maps.default.Image, c.props));
  return /*#__PURE__*/_react.default.createElement(_maps.default.Images, {
    images: images,
    onImageMissing: onImageMissing
  }, convertedChildren);
};
var _default = exports.default = Images;
//# sourceMappingURL=Images.js.map