react-native-google-mobile-ads
Version:
React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.
31 lines • 1.05 kB
TypeScript
import type * as React from 'react';
import type { HostComponent, ViewProps } from 'react-native';
import type { BubblingEventHandler, Float } from 'react-native/Libraries/Types/CodegenTypes';
export type NativeEvent = {
type: string;
width?: Float;
height?: Float;
code?: string;
message?: string;
name?: string;
data?: string;
currency?: string;
precision?: Float;
value?: Float;
};
export interface NativeProps extends ViewProps {
sizes: string[];
unitId: string;
request: string;
manualImpressionsEnabled: boolean;
onNativeEvent: BubblingEventHandler<NativeEvent>;
}
export type ComponentType = HostComponent<NativeProps>;
interface NativeCommands {
recordManualImpression: (viewRef: React.ElementRef<ComponentType>) => void;
load: (viewRef: React.ElementRef<ComponentType>) => void;
}
export declare const Commands: NativeCommands;
declare const _default: HostComponent<NativeProps>;
export default _default;
//# sourceMappingURL=GoogleMobileAdsBannerViewNativeComponent.d.ts.map