You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
I try to load interstitial ad on onPress evets but ads are always loaded on mounted. Check my code below
import { useInterstitialAd, TestIds } from '@react-native-admob/admob';
const App = () => {
const { adLoaded, load} = useInterstitialAd(TestIds.INTERSTITIAL, {
requestOptions: {
loadOnMounted: false, // i am not loading ad on mounting
loadOnDismissed: false
},
});
useEffect(() => {
if (adLoaded) {
console.log("Loaded") /// i never call the load function but still the add is loaded why?????
}
},[adLoaded])
/* rest of the code*/
}
How to resolve this now????
Thanks.
The text was updated successfully, but these errors were encountered:
zoobibackups
changed the title
Interstistia ad load on mounted even loadOnMounted = false; ????
Interstistial ad always load on mounted even loadOnMounted = false ??
Nov 25, 2021
I try to load interstitial ad on onPress evets but ads are always loaded on mounted. Check my code below
How to resolve this now????
Thanks.
The text was updated successfully, but these errors were encountered: