UNPKG

@beletsky/react-native-yandex-ads

Version:
88 lines (87 loc) 2.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.YA_NATIVE_ID = exports.YA_NATIVE_COMPONENTS = exports.REQUIRED_NATIVE_AD_COMPONENTS = exports.DEFAULT_CONFIG = void 0; var _reactNative = require("react-native"); const YA_NATIVE_COMPONENTS = { container: 'AdContainer', title: 'AdTitle', body: 'AdBody', warning: 'AdWarning', sponsored: 'AdSponsored', age: 'AdAge', domain: 'AdDomain', icon: 'AdIcon', favicon: 'AdFavicon', feedback: 'AdFeedback', media: 'AdMedia' }; exports.YA_NATIVE_COMPONENTS = YA_NATIVE_COMPONENTS; const YA_NATIVE_ID = { container: 'YandexAdsNativeContainer', title: 'YandexAdsNativeTitle', body: 'YandexAdsNativeBody', warning: 'YandexAdsNativeWarning', sponsored: 'YandexAdsNativeSponsored', age: 'YandexAdsNativeAge', domain: 'YandexAdsNativeDomain', icon: 'YandexAdsNativeIcon', favicon: 'YandexAdsNativeFavicon', feedback: 'YandexAdsNativeFeedback', media: 'YandexAdsNativeMedia' }; exports.YA_NATIVE_ID = YA_NATIVE_ID; const DEFAULT_CONFIG = { container: {}, title: { color: '#FFFFFF', fontSize: 12, numberOfLines: 1 }, body: { color: '#21F5FF', fontSize: 12, numberOfLines: 1 }, warning: { color: '#6F6F1F', fontSize: 12, numberOfLines: 1 }, sponsored: { color: '#FF545F', fontSize: 12, numberOfLines: 1 }, age: { color: '#FF1FFF', fontSize: 12, numberOfLines: 1 }, domain: { color: '#3FF22F', fontSize: 12, numberOfLines: 1 }, icon: { width: _reactNative.PixelRatio.getPixelSizeForLayoutSize(10), height: _reactNative.PixelRatio.getPixelSizeForLayoutSize(10) }, favicon: { width: _reactNative.PixelRatio.getPixelSizeForLayoutSize(10), height: _reactNative.PixelRatio.getPixelSizeForLayoutSize(10) }, feedback: { width: _reactNative.PixelRatio.getPixelSizeForLayoutSize(10), height: _reactNative.PixelRatio.getPixelSizeForLayoutSize(10) }, media: { width: 12, height: 12 } }; exports.DEFAULT_CONFIG = DEFAULT_CONFIG; const REQUIRED_NATIVE_AD_COMPONENTS = [YA_NATIVE_COMPONENTS.title, YA_NATIVE_COMPONENTS.icon, YA_NATIVE_COMPONENTS.body, YA_NATIVE_COMPONENTS.media, YA_NATIVE_COMPONENTS.warning, YA_NATIVE_COMPONENTS.feedback, YA_NATIVE_COMPONENTS.sponsored]; exports.REQUIRED_NATIVE_AD_COMPONENTS = REQUIRED_NATIVE_AD_COMPONENTS; //# sourceMappingURL=constants.js.map