@beletsky/react-native-yandex-ads
Version:
111 lines (110 loc) • 4.65 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
RewardedEventTypes: true,
InterstitialEventTypes: true,
AdBannerType: true
};
exports.default = exports.RewardedEventTypes = exports.InterstitialEventTypes = exports.AdBannerType = void 0;
var _constants = require("./constants");
Object.keys(_constants).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _constants[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _constants[key];
}
});
});
let RewardedEventTypes;
exports.RewardedEventTypes = RewardedEventTypes;
(function (RewardedEventTypes) {
RewardedEventTypes["didReward"] = "onDidReward";
RewardedEventTypes["didLoad"] = "onDidLoad";
RewardedEventTypes["didFail"] = "onDidFail";
RewardedEventTypes["didClick"] = "onDidClick";
RewardedEventTypes["impressionTracked"] = "onImpressionTracked";
RewardedEventTypes["leaveApplication"] = "onWillLeaveApplication";
RewardedEventTypes["willAppear"] = "onWillAppear";
RewardedEventTypes["didAppear"] = "onDidAppear";
RewardedEventTypes["willDisappear"] = "onWillDisappear";
RewardedEventTypes["didDisappear"] = "onDidDisappear";
RewardedEventTypes["willPresent"] = "onWillPresent";
})(RewardedEventTypes || (exports.RewardedEventTypes = RewardedEventTypes = {}));
let InterstitialEventTypes;
exports.InterstitialEventTypes = InterstitialEventTypes;
(function (InterstitialEventTypes) {
InterstitialEventTypes["didLoad"] = "onDidLoad";
InterstitialEventTypes["didFail"] = "onDidFail";
InterstitialEventTypes["didClick"] = "onDidClick";
InterstitialEventTypes["impressionTracked"] = "onImpressionTracked";
InterstitialEventTypes["leaveApplication"] = "onWillLeaveApplication";
InterstitialEventTypes["willAppear"] = "onWillAppear";
InterstitialEventTypes["didAppear"] = "onDidAppear";
InterstitialEventTypes["willDisappear"] = "onWillDisappear";
InterstitialEventTypes["didDisappear"] = "onDidDisappear";
InterstitialEventTypes["willPresent"] = "onWillPresent";
})(InterstitialEventTypes || (exports.InterstitialEventTypes = InterstitialEventTypes = {}));
let AdBannerType;
exports.AdBannerType = AdBannerType;
(function (AdBannerType) {
AdBannerType["BANNER_300x250"] = "BANNER_300x250";
AdBannerType["BANNER_320x250"] = "BANNER_320x250";
AdBannerType["BANNER_300x300"] = "BANNER_300x300";
AdBannerType["BANNER_320x50"] = "BANNER_320x50";
AdBannerType["BANNER_320x100"] = "BANNER_320x100";
AdBannerType["BANNER_400x240"] = "BANNER_400x240";
AdBannerType["BANNER_728x90"] = "BANNER_728x90";
})(AdBannerType || (exports.AdBannerType = AdBannerType = {}));
var bannerHeight;
(function (bannerHeight) {
bannerHeight[bannerHeight["BANNER_300x250"] = 250] = "BANNER_300x250";
bannerHeight[bannerHeight["BANNER_320x250"] = 250] = "BANNER_320x250";
bannerHeight[bannerHeight["BANNER_300x300"] = 300] = "BANNER_300x300";
bannerHeight[bannerHeight["BANNER_320x50"] = 50] = "BANNER_320x50";
bannerHeight[bannerHeight["BANNER_320x100"] = 100] = "BANNER_320x100";
bannerHeight[bannerHeight["BANNER_400x240"] = 240] = "BANNER_400x240";
bannerHeight[bannerHeight["BANNER_728x90"] = 90] = "BANNER_728x90";
})(bannerHeight || (bannerHeight = {}));
var bannerWidth;
(function (bannerWidth) {
bannerWidth[bannerWidth["BANNER_300x250"] = 300] = "BANNER_300x250";
bannerWidth[bannerWidth["BANNER_320x250"] = 320] = "BANNER_320x250";
bannerWidth[bannerWidth["BANNER_300x300"] = 300] = "BANNER_300x300";
bannerWidth[bannerWidth["BANNER_320x50"] = 320] = "BANNER_320x50";
bannerWidth[bannerWidth["BANNER_320x100"] = 320] = "BANNER_320x100";
bannerWidth[bannerWidth["BANNER_400x240"] = 400] = "BANNER_400x240";
bannerWidth[bannerWidth["BANNER_728x90"] = 728] = "BANNER_728x90";
})(bannerWidth || (bannerWidth = {}));
const RES = {
MODULES: {
MAIN: 'YaAdsMobileModule',
// only Android
INTERSTITIAL: 'YaAdInterstitialModule',
REWARDED: 'YaAdRewardedModule'
},
VIEW_MANAGERS: {
NATIVE: 'YaAdNativeView',
CONTAINER: 'YaAdContainerViewManager',
// only Android
MEDIA: 'YaAdMediaViewManager',
// only Android
IMAGE: 'YaAdImageViewManager',
// only Android
TEXT: 'YaAdTextViewManager',
// only Android
BANNER: 'YaAdBannerView'
},
RewardedEventTypes,
bannerWidth,
bannerHeight,
AdBannerType,
InterstitialEventTypes
};
var _default = RES;
exports.default = _default;
//# sourceMappingURL=index.ios.js.map