react-native-google-mobile-ads 6.2.3 → 6.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,6 +51,7 @@ public class ReactNativeGoogleMobileAdsBannerAdViewManager
51
51
  private final String EVENT_AD_FAILED_TO_LOAD = "onAdFailedToLoad";
52
52
  private final String EVENT_AD_OPENED = "onAdOpened";
53
53
  private final String EVENT_AD_CLOSED = "onAdClosed";
54
+ private final String EVENT_SIZE_CHANGE = "onSizeChange";
54
55
  private final String EVENT_APP_EVENT = "onAppEvent";
55
56
  private final int COMMAND_ID_RECORD_MANUAL_IMPRESSION = 1;
56
57
 
@@ -121,6 +122,15 @@ public class ReactNativeGoogleMobileAdsBannerAdViewManager
121
122
  sizeList.add(ReactNativeGoogleMobileAdsCommon.getAdSize(sizeString, reactViewGroup));
122
123
  }
123
124
  }
125
+
126
+ if (sizeList.size() > 0) {
127
+ AdSize adSize = sizeList.get(0);
128
+ WritableMap payload = Arguments.createMap();
129
+ payload.putDouble("width", adSize.getWidth());
130
+ payload.putDouble("height", adSize.getHeight());
131
+ sendEvent(reactViewGroup, EVENT_SIZE_CHANGE, payload);
132
+ }
133
+
124
134
  sizes = sizeList;
125
135
  propsChanged = true;
126
136
  }
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = '6.2.3';
8
+ const version = '6.2.4';
9
9
  exports.version = version;
10
10
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.2.3';\n"]}
1
+ {"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.2.4';\n"]}
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '6.2.3';
2
+ export const version = '6.2.4';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.2.3';\n"]}
1
+ {"version":3,"sources":["version.ts"],"names":["version"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '6.2.4';\n"]}
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "6.2.3";
1
+ export declare const SDK_VERSION = "6.2.4";
2
2
  export { default, MobileAds } from './MobileAds';
3
3
  export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
4
4
  export { AdsConsentPurposes } from './AdsConsentPurposes';
@@ -1 +1 @@
1
- export declare const version = "6.2.3";
1
+ export declare const version = "6.2.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-mobile-ads",
3
- "version": "6.2.3",
3
+ "version": "6.2.4",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",
6
6
  "main": "lib/commonjs/index.js",
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '6.2.3';
2
+ export const version = '6.2.4';