Skip to content

Commit

Permalink
fix(android): no banner ads loaded in the first render
Browse files Browse the repository at this point in the history
* Fix: no banner ads loaded on Android in the initial render

#58
  • Loading branch information
birdofpreyru authored and mikehardy committed Feb 7, 2022
1 parent 42a0fb2 commit 3154579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

---

Think `react-native-admob` is great? Please consider supporting the project with any of the below:
Think `react-native-google-ads` is great? Please consider supporting the project with any of the below:

- 👉 Star this repo on GitHub ⭐️
- 👉 Follow [`Invertase`](https://twitter.com/invertaseio) on Twitter
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ public Map<String, Object> getExportedCustomDirectEventTypeConstants() {
@ReactProp(name = "unitId")
public void setUnitId(ReactViewGroup reactViewGroup, String value) {
unitId = value;
requestAd(reactViewGroup);
}

@ReactProp(name = "request")
public void setRequest(ReactViewGroup reactViewGroup, ReadableMap value) {
request = ReactNativeGoogleAdsCommon.buildAdRequest(value);
requestAd(reactViewGroup);
}

@ReactProp(name = "size")
Expand Down

0 comments on commit 3154579

Please sign in to comment.