Skip to content

Commit 84a6c30

Browse files
committed
fix(admob):ignore typing
The native view extend ViewGroup but the generated typing does not show this
1 parent b6f348d commit 84a6c30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firebase-admob/nativead/index.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export class NativeAdView extends NativeAdViewBase implements AddChildFromBuilde
2828

2929
onLoaded(){
3030
super.onLoaded();
31-
if(this.#child && this.#native.indexOfChild(this.#child.nativeView) === -1) {
32-
(this.#native as any).addView(this.#child.nativeView);
31+
if (this.#child && (<any>this.#native).indexOfChild(this.#child.nativeView) === -1) {
32+
(<any>this.#native).addView(this.#child.nativeView);
3333
}
3434
}
3535

0 commit comments

Comments
 (0)