import Mapbox from '@rnmapbox/maps';
import React from 'react';

/**
 * Images props
 *
 * @category Props
 */

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