UNPKG

ironsource-mediation

Version:

IronSource ad mediation React-Native plugin. Monetize apps with rewarded video, interstitial, banner, and native ads.

65 lines 2.18 kB
import * as React from 'react'; import { type NativeMethods, type ViewProps, type ColorValue } from 'react-native'; import { type IronSourceAdInfo, type IronSourceError, LevelPlayNativeAd } from '../models'; export type LevelPlayNativeAdViewType = React.Component<LevelPlayNativeAdViewProps> & NativeMethods; export interface LevelPlayNativeAdViewProps extends ViewProps { templateType?: LevelPlayTemplateType; templateStyle?: LevelPlayNativeAdTemplateStyle; viewType?: string; nativeAd: LevelPlayNativeAd | null; } export type LevelPlayNativeAdViewNativeEvents = { onAdLoadedEvent(event: { nativeEvent: { nativeAd: LevelPlayNativeAd; adInfo: IronSourceAdInfo; }; }): void; onAdLoadFailedEvent(event: { nativeEvent: { nativeAd: LevelPlayNativeAd; error: IronSourceError; }; }): void; onAdClickedEvent(event: { nativeEvent: { nativeAd: LevelPlayNativeAd; adInfo: IronSourceAdInfo; }; }): void; onAdImpressionEvent(event: { nativeEvent: { nativeAd: LevelPlayNativeAd; adInfo: IronSourceAdInfo; }; }): void; }; /** * LevelPlay React component for displaying native ads */ export declare function LevelPlayNativeAdView(props: LevelPlayNativeAdViewProps): React.JSX.Element | null; export declare enum LevelPlayTemplateType { Small = "SMALL", Medium = "MEDIUM" } export declare enum LevelPlayNativeTemplateFontStyle { Normal = "normal", Bold = "bold", Italic = "italic", Monospace = "monospace" } export interface LevelPlayNativeAdElementStyle { backgroundColor?: ColorValue; textSize?: number; textColor?: ColorValue; fontStyle?: LevelPlayNativeTemplateFontStyle; cornerRadius?: number; } export interface LevelPlayNativeAdTemplateStyle { mainBackgroundColor?: ColorValue; titleStyle?: LevelPlayNativeAdElementStyle; bodyStyle?: LevelPlayNativeAdElementStyle; advertiserStyle?: LevelPlayNativeAdElementStyle; callToActionStyle?: LevelPlayNativeAdElementStyle; } //# sourceMappingURL=LevelPlayNativeAdView.d.ts.map