react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

"RNGADBannerView does not exist" error

Open rafWork opened this issue 8 years ago • 10 comments

Hello,

I've tried to use react-native-admob 2 beta but I'm getting this error. screen shot 2017-12-19 at 00 53 00

I don't know what to do, could anyone please help me?

Before anyone asks; I had started with create-react-native-app command but before then using admob I ejected my app.

My dependencies are below. "dependencies": { "axios": "^0.17.1", "expo": "^23.0.4", "react": "16.0.0", "react-native": "0.50.3", "react-native-admob": "^2.0.0-beta.4", "react-native-loading-spinner-overlay": "^0.5.2", "react-native-render-html": "^3.5.2", "react-navigation": "^1.0.0-beta.21", "react-redux": "^5.0.6", "redux": "^3.7.2", "redux-promise": "^0.5.3", "redux-saga": "0.16.0", "redux-thunk": "^2.2.0" }

rafWork avatar Dec 18 '17 22:12 rafWork

Looks like you forgot to “link” the project. Please check the installation section in the README

koenpunt avatar Dec 18 '17 22:12 koenpunt

Maybe I've screwed up somehow but Xcode and terminal say that it is linked.

screen shot 2017-12-19 at 01 21 17

screen shot 2017-12-19 at 01 16 08 screen shot 2017-12-19 at 01 16 34

rafWork avatar Dec 18 '17 22:12 rafWork

The icon of the library should not look like that actually..

Can you try to follow the manual linking steps and see if that solves it?

koenpunt avatar Dec 19 '17 07:12 koenpunt

I've thrown everything that I had and it worked :)

I've watched an youtube video before reading manual, that was a bad idea :/

screen shot 2017-12-19 at 12 19 04

rafWork avatar Dec 19 '17 09:12 rafWork

Glad you figured it out. Going to close this now.

koenpunt avatar Dec 19 '17 10:12 koenpunt

Btw, you do not need to (should not) add the xcodeproj file to the linked libs

koenpunt avatar Dec 19 '17 10:12 koenpunt

Thank you! Last quick question, do I need to do anything with my Admob app Id like we should do on swift/xcode?

rafWork avatar Dec 19 '17 10:12 rafWork

It works without, but I believe Google recommends it. To add it you should use the documented way; so just adding it to the AppDelegate for iOS, and using the respective way on Android too.

koenpunt avatar Dec 19 '17 10:12 koenpunt

I also face the same issue. I share a link, this issue mention here with the solution. It might be helpful to you. Pls refer this link: https://react-native-solutions.blogspot.com/2018/07/how-to-create-react-native-app-with.html

Verma-Pooja avatar Jul 12 '18 06:07 Verma-Pooja

me too...

shinriyo avatar Sep 17 '18 02:09 shinriyo