mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[ios][admob] added stub modules
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { NativeModules, NativeEventEmitter } from 'react-native';
|
||||
import { nativeSDKMissing } from './../../utils';
|
||||
|
||||
import Interstitial from './Interstitial';
|
||||
import AdRequest from './AdRequest';
|
||||
import Banner from './Banner';
|
||||
@@ -11,6 +13,10 @@ export default class Admob extends Base {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
if (FirebaseAdMob.nativeSDKMissing) {
|
||||
return nativeSDKMissing('admob');
|
||||
}
|
||||
|
||||
FirebaseAdMobEvt.addListener('interstitial_event', this._onInterstitialEvent.bind(this));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user