@beletsky/react-native-yandex-ads
Version:
26 lines • 708 B
JavaScript
// @ts-nocheck
import React from 'react';
import { View, requireNativeComponent } from 'react-native';
import RES, { DEFAULT_CONFIG as defConfig } from '../resources';
let AdMediaNativeComponent = requireNativeComponent(RES.VIEW_MANAGERS.MEDIA);
export const AdMedia = _ref => {
let {
nativeID,
width = defConfig.media.width,
height = defConfig.media.height,
style
} = _ref;
return /*#__PURE__*/React.createElement(View, {
style: [{
backgroundColor: 'transparent'
}, style, {
width,
height
}]
}, nativeID ? /*#__PURE__*/React.createElement(AdMediaNativeComponent, {
width,
height,
nativeID
}) : null);
};
//# sourceMappingURL=AdMedia.js.map