React-native-admob: React Native 0.40 Compatibility

Created on 21 Jan 2017  路  19Comments  路  Source: sbugert/react-native-admob

Is this repo supporting version 0.40?

Most helpful comment

Not yet. But I send a PR that fix this. Wait for merge #78.

All 19 comments

Not yet. But I send a PR that fix this. Wait for merge #78.

What else is needed to support version 0.40?

Have you solved this problem? not supprot RN 0.4>= Version And react-native link commend?

It looks like @lucianomlima solved the iOS part, so we're left with Android. Anyone can make this happen?

I installed manually this on RN 0.40 and it worked with Android, I just changed the location of the interterstial id.

@fcpauldiaz Location of interstitial on iOS or Android too?

@fcpauldiaz @lucianomlima since sbugert seems inactive, can one of you test a working version of 0.40 and fork it? Others and future users can benefit from your work, since there seems to be no other admob repo.

@lucianomlima only on Android, I haven't tested it on iOS. @edencakir I can do an example over the weekend. If someone needs an example right now, you can check my app repo just be careful with the production ads.

@fcpauldiaz you can send me the code you change?
Maybe I try to update my pull request to fix compatibility for Android too.

I based all my code from the Example from this repo. The lines that I actually changed are this, this, this, this and this.

And of course the versions of RN.

@fcpauldiaz thanks, I've seen your code and apparently the interstitial issue is not directly related to the RN 0.40+ version.
So, maybe Android platform don't need adjusts for RN 0.40+.

That's great! So you can make a release now

Here in this repo I can't, cause I'm not collaborator.

i just typed commands.
version
"dependencies": {
"react": "15.4.2",
"react-native": "0.41.2",
"react-native-admob": "^1.1.5"
},

npm i react-native-admob -S
react-native link

pod install
target 'admob' do
  use_frameworks!
  pod 'Firebase/AdMob'

  target 'admobTests' do
    inherit! :search_paths

  end

end

Build fali since then. How do you solution with it?

image

Do you have a working fork? @lucianomlima

@YoonJaePark see #78 or use RN 0.39

@edencakir my fork only have a branch with the changes I do in PR #78
Here I'm still using RN 0.39

Closed by #95

Published https://github.com/sbugert/react-native-admob/releases/tag/v1.2.0

Please feel free to ping me if anything is wrong.

Was this page helpful?
0 / 5 - 0 ratings