I have the next error:
ERROR Invariant Violation: requireNativeComponent: "RNGoogleMobileAdsBannerView" was not found..
This error is located at:
in RNGoogleMobileAdsBannerView (created by BaseAd)
in BaseAd (created by BannerAd)
in BannerAd (created by BannerAd)
in BannerAd (created by HomeMenu)
...
In my package.json I have the necessary modules
"expo": "^48.0.0",
"expo-build-properties": "~0.5.1",
"react-native-google-mobile-ads": "^10.0.0",
And when I want to add banner :
BannerAd(props) {
const adUnitID = Platform.select({
ios: Environment.ADS[Platform.OS].BANNER || TestIds.BANNER,
android: Environment.ADS[Platform.OS].BANNER || TestIds.BANNER,
});
return (
<BannerAd
unitId={adUnitID}
size={BannerAdSize.BANNER}
requestOptions={{
requestNonPersonalizedAdsOnly: true,
}}
onAdFailedToLoad={() => <View></View>}
{...props}
/>
);
}
I dont know what is happening.
I have reinstalled the modules I have also change sdk expo but I dont fix it.