Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//
// interstitialAd.load();
// }
useEffect(() => {
init().catch(console.error);
}, []);
return (
<View
style={{ flex: 1, justifyContent: 'center', flexDirection: 'column', alignItems: 'center' }}
>
<BannerAd
size={firebase.admob.BannerAdSize.LARGE_BANNER}
request={{}}
unitId={TestIds.BANNER + '123'}
onAdLoaded={() => console.log('loaded')}
onAdFailedToLoad={e => console.log('failed to load', e)}
/>
</View>
);
}