sr3
sr3

Reputation: 399

Native Ads In React Native

How do you implement AdMob's Native Ads in React Native? The best I've found is react-native-admob, but it only does fixed banners and full screen interstitials. How could I implement native ads inside my React Native app with AdMob or any other native ad provider?

Upvotes: 18

Views: 10977

Answers (2)

Jobeso
Jobeso

Reputation: 733

Appodeal provides native ads. It asks you when creating your app which framework you want to use.

EDIT: Appodeal now discontinues the support of their react-native wrapper

Upvotes: 0

A-Man
A-Man

Reputation: 505

There's also react native facebook ads Have a look: React Native Facebook Ads

This plugin allows you to implement native ads, only downside is that the installation process is a bit of a handful but it does work. It also requires react-native-fbsdk to be installed too so that your ads produce relevant ads to your users once they've logged in.

At this moment react-native-admob doesn't support native ads just yet, but you can implement it in a way that it's not fixed like so:

<ScrollView>
 <View>
  <Text>Add some content here</Text>
  <AdMobBanner
   bannerSize="smartBannerPortrait"
   adUnitID="you-ad-unit-id"
   testDeviceID="EMULATOR"
   didFailToReceiveAdWithError={this.bannerError} />
 </View>
</ScrollView>

Upvotes: 8

Related Questions