UNPKG

react-native-appodeal

Version:

React Native Module created to support Appodeal SDK for iOS and Android platforms

43 lines (41 loc) 1.1 kB
"use strict"; /** * Appodeal Banner Ad Component * * A React Native component for displaying banner ads using the Appodeal SDK. * Banner ads are typically 320x50 pixels for phones and 728x90 for tablets. */ import AppodealBannerView from './specs/AppodealBannerViewNativeComponent'; /** * Supported ad sizes for banner ads */ import { jsx as _jsx } from "react/jsx-runtime"; /** * Appodeal Banner Ad Component * * Renders a banner ad with automatic height adjustment based on device type. * Supports both phone and tablet layouts with appropriate sizing. * * @param props - Component props including adSize, style, and event handlers * @returns React component for banner ads */ const AppodealBanner = ({ adSize = 'phone', style, ...rest }) => { // Height mapping for different device types const heightMap = { phone: 50, tablet: 90 }; return /*#__PURE__*/_jsx(AppodealBannerView, { adSize: adSize, style: [style, { height: heightMap[adSize] }], ...rest }); }; export default AppodealBanner; //# sourceMappingURL=RNAppodealBanner.js.map