[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

@ -0,0 +1,12 @@
#ifndef RNFirebaseAdMob_h
#define RNFirebaseAdmob_h
#import <React/RCTBridgeModule.h>
@interface RNFirebaseAdMob : NSObject <RCTBridgeModule> {
}
@end
#endif

View File

@ -0,0 +1,7 @@
#import "RNFirebaseAdMob.h"
@implementation RNFirebaseAdMob
RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(nativeSDKMissing) {}
@end

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

View File

@ -52,12 +52,12 @@ function bootstrap() {
return null;
}
return <Banner style={{ width: 100, height: 100, backgroundColor: 'pink'}} />;
// return (
// <Provider store={this.state.store}>
// <CoreContainer />
// </Provider>
// );
// return <Banner style={{ width: 100, height: 100, backgroundColor: 'pink'}} />;
return (
<Provider store={this.state.store}>
<CoreContainer />
</Provider>
);
}
}