CIBannerView component. It accepts all standard React Native
ViewProps (so you control the ad size through style)
plus the following parameters:
Required
placementId: string: Unique ID for this Ad Placement provided by Content Ignite.pageUrl: string: URL used for targeting, for example if the ad is displayed inline within an article or section of the app which has an equivalent URL on the web.targeting: Record<string, string[]>: Pass custom key-value pairs to ad requests.
Optional
style: Standard React Native style used to size the banner (e.g.{ width: 300, height: 250 }).onBannerLoaded: () => void: Called when the ad has loaded successfully.onBannerLoadFailed: (event) => void: Called when the ad fails to load. The reason is available onevent.nativeEvent.error.onBannerClicked: () => void: Called when the user taps the ad.onBannerImpression: () => void: Called when an impression is recorded.
The banner is rendered natively, so make sure the SDK has been initialised
(see the Introduction) before mounting
CIBannerView.Handling ad events
To listen and respond to events from a Banner ad, pass theonBanner* callbacks: