Banner & MREC Ad Formats
Banner Ads
Rectangular ad format (320x50) that occupies part of your app layout. Supported by most ad demand sources.
MREC Ads
Medium Rectangle format (300x250) with similar characteristics to banner ads.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Implement banner and MREC ads in your React Native app.


import { AdFormat, AdBannerView } from "react-native-daro";
import { Platform } from "react-native";
const BANNER_AD_UNIT_ID = Platform.select({
ios: "YOUR_IOS_BANNER_AD_UNIT_ID",
android: "YOUR_ANDROID_BANNER_AD_UNIT_ID",
default: '',
});
<AdBannerView
style={styles.bannerView} // You must pass the Ad Unit Key when creating the component. Please set the style size to 320x50.
adFormat={AdFormat.BANNER}
adUnitId={BANNER_AD_UNIT_ID}
/>
const MREC_AD_UNIT_ID = Platform.select({
ios: "YOUR_IOS_MREC_AD_UNIT_ID",
android: "YOUR_ANDROID_MREC_AD_UNIT_ID",
default: '',
});
<AdBannerView
style={styles.bannerView} // You must pass the Ad Unit Key when creating the component. Please set the style size to 300x250.
adFormat={AdFormat.MREC}
adUnitId={MREC_AD_UNIT_ID}
/>
