react-native-google-mobile-ads 10.0.0 → 10.0.1

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.
@@ -267,7 +267,8 @@ public class ReactNativeGoogleMobileAdsBannerAdViewManager
267
267
  event.merge(payload);
268
268
  }
269
269
 
270
- ((ThemedReactContext) reactViewGroup.getContext())
270
+ reactViewGroup
271
+ .getReactContext()
271
272
  .getJSModule(RCTEventEmitter.class)
272
273
  .receiveEvent(reactViewGroup.getId(), "onNativeEvent", event);
273
274
  }
@@ -1,6 +1,6 @@
1
1
  package io.invertase.googlemobileads.common;
2
2
 
3
- import android.content.Context;
3
+ import com.facebook.react.uimanager.ThemedReactContext;
4
4
  import com.facebook.react.views.view.ReactViewGroup;
5
5
  import com.google.android.gms.ads.AdRequest;
6
6
  import com.google.android.gms.ads.AdSize;
@@ -13,9 +13,11 @@ public class ReactNativeAdView extends ReactViewGroup {
13
13
  private boolean manualImpressionsEnabled;
14
14
  private boolean propsChanged;
15
15
  private boolean isFluid;
16
+ private ThemedReactContext reactContext;
16
17
 
17
- public ReactNativeAdView(final Context context) {
18
- super(context);
18
+ public ReactNativeAdView(final ThemedReactContext context) {
19
+ super(context.getCurrentActivity());
20
+ setReactContext(context);
19
21
  }
20
22
 
21
23
  public void setRequest(AdRequest request) {
@@ -65,4 +67,12 @@ public class ReactNativeAdView extends ReactViewGroup {
65
67
  public boolean getIsFluid() {
66
68
  return this.isFluid;
67
69
  }
70
+
71
+ public ThemedReactContext getReactContext() {
72
+ return reactContext;
73
+ }
74
+
75
+ public void setReactContext(ThemedReactContext reactContext) {
76
+ this.reactContext = reactContext;
77
+ }
68
78
  }
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = '10.0.0';
8
+ const version = '10.0.1';
9
9
  exports.version = version;
10
10
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '10.0.0';
2
+ export const version = '10.0.1';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "10.0.0";
1
+ export declare const SDK_VERSION = "10.0.1";
2
2
  export { default, MobileAds } from './MobileAds';
3
3
  export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
4
4
  export { AdsConsentPurposes } from './AdsConsentPurposes';
@@ -1,2 +1,2 @@
1
- export declare const version = "10.0.0";
1
+ export declare const version = "10.0.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-mobile-ads",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
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 = '10.0.0';
2
+ export const version = '10.0.1';