diff --git a/RNGoogleMobileAdsExample/App.tsx b/RNGoogleMobileAdsExample/App.tsx index 4263e443..dcefbdac 100644 --- a/RNGoogleMobileAdsExample/App.tsx +++ b/RNGoogleMobileAdsExample/App.tsx @@ -184,7 +184,8 @@ class InterstitialTest implements Test { class BannerTest implements Test { bannerAdSize: BannerAdSize | string; - maxHeight: number | undefined; + maxHeight?: number; + constructor(bannerAdSize, maxHeight: number | undefined = undefined) { this.bannerAdSize = bannerAdSize; this.bannerRef = React.createRef();