Invariant Violation: Native component for "RNGADBannerView" does not exist
Followed the following steps:
- create-react-native-app
- cd
- yarn add react-native-admob@next
- copied the same code as provided in Example folder.
- Getting following error: Invariant Violation: Native component for "RNGADBannerView" does not exist
Tried the same process with
- react-native init
- cd
- npm install react-native-admob@next --save
- copied the same code as provided in Example folder.
- Getting following error: Invariant Violation: Native component for "RNGADBannerView" does not exist
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
verified it. after "react-native link" it worked.
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()
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
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.
finally did you use the project by npm run eject?
still having this issue after linking and upgrading to latest version. Linking is not working.