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

Invariant Violation: Native component for "RNGADBannerView" does not exist

Open vineeth059 opened this issue 8 years ago • 7 comments

Followed the following steps:

  1. create-react-native-app
  2. cd
  3. yarn add react-native-admob@next
  4. copied the same code as provided in Example folder.
  5. Getting following error: Invariant Violation: Native component for "RNGADBannerView" does not exist

Tried the same process with

  1. react-native init
  2. cd
  3. npm install react-native-admob@next --save
  4. copied the same code as provided in Example folder.
  5. Getting following error: Invariant Violation: Native component for "RNGADBannerView" does not exist

vineeth059 avatar Dec 21 '17 13:12 vineeth059

I had the same problem. It happens because there is a mistake on linking. My closed issue is below. https://github.com/sbugert/react-native-admob/issues/230

rafWork avatar Dec 21 '17 13:12 rafWork

verified it. after "react-native link" it worked.

vineeth059 avatar Dec 21 '17 13:12 vineeth059

This continued happening to me on Android after react-native link. It turned out that the linking process hadn't added the package into my MainApplication.java like so:

import com.sbugert.rnadmob.RNAdMobPackage;
new RNAdMobPackage()

azanli avatar Mar 31 '18 14:03 azanli

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

I solved my problem with re-install the component npm install react-native-admob@next --save and react-native link and re-compile the project.

cyb3rsalih avatar Aug 26 '18 16:08 cyb3rsalih

finally did you use the project by npm run eject?

shinriyo avatar Sep 16 '18 13:09 shinriyo

still having this issue after linking and upgrading to latest version. Linking is not working.

ameshkin avatar Sep 25 '18 17:09 ameshkin