[ios][admob] added stub modules

This commit is contained in:
Salakar
2017-05-27 15:24:51 +01:00
parent 5a62d9664b
commit b7b4febe3f
4 changed files with 31 additions and 6 deletions

View File

@@ -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));
}