Chaurasia
Chaurasia

Reputation: 496

How to add Google ads in Apk

There are some react-native components for ads but some of them don't work with current versions of react-native. (react-native-admob for example).

There is a serious lack of information about showing ads in react native and I can't seem to figure out how most people accomplish this.

Does everyone really write their own native UI component to accomplish this? Is react-native-admob really the only way to use admob currently? Am I just completely missing some simple way to do this?

like this image

Upvotes: 0

Views: 148

Answers (2)

Chaitanya Parashar
Chaitanya Parashar

Reputation: 742

You have to use react-native-firebase library and then use admob feature. Here is the complete documentation: https://rnfirebase.io/docs/v5.x.x/admob/android

Upvotes: 1

Nandu Kkd
Nandu Kkd

Reputation: 392

You can use the react-native-admob module. Install it using npm:

npm install --save react-native-admob
react-native link

Go through their example for info on usage.

Upvotes: 1

Related Questions