react-native-tapdaq
Version:
Tapdaq bridge in React Native
19 lines (18 loc) • 888 B
TypeScript
import React from 'react';
import { ViewStyle, NativeSyntheticEvent } from 'react-native';
interface TapdaqAd {
placement?: string;
hasVideoContent?: boolean;
}
interface MediatedNativeAdProps {
placement: string;
onLoadStart?: (e: NativeSyntheticEvent<any>) => void;
onClick?: (e: NativeSyntheticEvent<any>) => void;
onError?: (e: NativeSyntheticEvent<any>) => void;
onLoad?: (e: NativeSyntheticEvent<TapdaqAd>) => void;
onDestroy?: (e: NativeSyntheticEvent<any>) => void;
style?: ViewStyle;
imageStyle?: ViewStyle;
}
declare const MediatedNativeAd: (compProps: MediatedNativeAdProps) => React.ReactElement<MediatedNativeAdProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
export default MediatedNativeAd;