[ios][admob] added stub modules
This commit is contained in:
parent
5a62d9664b
commit
b7b4febe3f
|
@ -0,0 +1,12 @@
|
|||
#ifndef RNFirebaseAdMob_h
|
||||
#define RNFirebaseAdmob_h
|
||||
|
||||
#import <React/RCTBridgeModule.h>
|
||||
|
||||
@interface RNFirebaseAdMob : NSObject <RCTBridgeModule> {
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -0,0 +1,7 @@
|
|||
#import "RNFirebaseAdMob.h"
|
||||
|
||||
@implementation RNFirebaseAdMob
|
||||
RCT_EXPORT_MODULE();
|
||||
RCT_EXPORT_METHOD(nativeSDKMissing) {}
|
||||
@end
|
||||
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue