Skip to content

Commit

Permalink
fix android icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Jul 9, 2020
1 parent a51b992 commit 7bcc39a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,15 @@ private void setNativeAdToJS(UnifiedNativeAd nativeAd) {
args.putString("icon", nativeAd.getIcon().getUri().toString());

} else {
args.putString("icon", "empty");
if (nativeAd.getResponseInfo().getMediationAdapterClassName().equals("com.google.ads.mediation.admob.AdMobAdapter")) {
args.putString("icon", "noicon");
} else {
args.putString("icon", "empty");
}




}

sendEvent(RNAdMobNativeViewManager.EVENT_UNIFIED_NATIVE_AD_LOADED, args);
Expand Down

0 comments on commit 7bcc39a

Please sign in to comment.