Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/displaying-ads.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ import { BannerAd, BannerAdSize, TestIds, useForeground } from 'react-native-goo
const adUnitId = __DEV__ ? TestIds.ADAPTIVE_BANNER : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy';

function App() {
const bannerRef = useRef < BannerAd > null;
const bannerRef = useRef<BannerAd>(null);

// (iOS) WKWebView can terminate if app is in a "suspended state", resulting in an empty banner when app returns to foreground.
// Therefore it's advised to "manually" request a new ad when the app is foregrounded (https://groups.google.com/g/google-admob-ads-sdk/c/rwBpqOUr8m8).
Expand Down
Loading