UNPKG

@beletsky/react-native-yandex-ads

Version:
12 lines (11 loc) 822 B
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import React from 'react'; import { requireNativeComponent } from 'react-native'; // @ts-ignore import RES, { DEFAULT_CONFIG } from '../resources'; let AdImageNativeComponent = requireNativeComponent(RES.VIEW_MANAGERS.IMAGE); // @ts-ignore export const AdImage = props => /*#__PURE__*/React.createElement(AdImageNativeComponent, _extends({}, props, { style: [DEFAULT_CONFIG.icon, props === null || props === void 0 ? void 0 : props.style] })); //# sourceMappingURL=AdImage.js.map