Skip to content

Commit

Permalink
fix(android): request layout after updating native ad
Browse files Browse the repository at this point in the history
  • Loading branch information
wjaykim committed Dec 25, 2024
1 parent c9cc3be commit be57e23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class ReactNativeGoogleMobileAdsNativeAdView(
reloadJob?.cancel()
reloadJob = CoroutineScope(Dispatchers.Main).launch {
delay(100)
requestLayout()
nativeAd?.let { nativeAdView.setNativeAd(it) }
nativeAdView.rootView.requestLayout()
}
}

Expand Down

0 comments on commit be57e23

Please sign in to comment.