Documentation Index
Fetch the complete documentation index at: https://guide.daro.so/llms.txt
Use this file to discover all available pages before exploring further.
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.
Creating Banner/MREC Components
import { AdFormat, AdBannerView } from "react-native-daro";
import { Platform } from "react-native";
import { AdFormat, AdBannerView } from "react-native-daro-m";
import { Platform } from "react-native";
const BANNER_AD_UNIT_ID = Platform.select({
ios: ${iOS unit Id},
android: ${Android unit id},
default: '',
});
<AdBannerView
style={styles.bannerView} // You must pass the ad unit ID when creating the component. Please set the style size to 320x50.
adFormat={AdFormat.BANNER}
adUnitId={BANNER_AD_UNIT_ID}
/>
- When using the same AdUnitId across multiple placements, be sure to enter a
placement to distinguish each placement.