add smartbanner landscape for iOS

This commit is contained in:
Marcel Friedrich 2017-12-03 19:15:26 +01:00
parent c81a786014
commit 22ace9e3ed
2 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,8 @@ class RNFirebaseAdMobUtils {
return AdSize.LEADERBOARD;
case "SMART_BANNER":
return AdSize.SMART_BANNER;
case "SMART_BANNER_LANDSCAPE":
return AdSize.SMART_BANNER;
}
}
}

View File

@ -210,6 +210,8 @@ RCT_EXPORT_METHOD(clearInterstitial:
return kGADAdSizeLeaderboard;
} else if ([value isEqualToString:@"SMART_BANNER"]) {
return kGADAdSizeSmartBannerPortrait;
} else if ([value isEqualToString:@"SMART_BANNER_LANDSCAPE"]) {
return kGADAdSizeSmartBannerLandscape;
} else {
return kGADAdSizeBanner;
}