I am trying to add “AdMobBanner” but it is throwing the error.
The error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: null.
Check the render method of App
.
This is the snack:
This should be easy but I am really stuck on this. Please help.
Hey @adarshkhatri , you need to be importing Admob exports from the expo-ads-admob
package. When in doubt, giving the docs another look is usually a good practice.
import {
AdMobBanner
} from 'expo-ads-admob';
system
Closed
June 15, 2021, 2:37pm
3
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.