react-native-firebase/ios/RNFirebase/admob/RNFirebaseAdMobBannerManager.m

32 lines
577 B
Mathematica
Raw Normal View History

2017-06-16 14:20:34 +00:00
#import "RNFirebaseAdMobBannerManager.h"
#import "BannerComponent.h"
@implementation RNFirebaseAdMobBannerManager
RCT_EXPORT_MODULE();
2017-06-20 12:22:09 +00:00
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
2017-06-16 14:20:34 +00:00
@synthesize bridge = _bridge;
- (UIView *)view
{
return [[BannerComponent alloc] init];
}
- (dispatch_queue_t)methodQueue
{
return dispatch_get_main_queue();
}
RCT_EXPORT_VIEW_PROPERTY(size, NSString);
RCT_EXPORT_VIEW_PROPERTY(unitId, NSString);
RCT_EXPORT_VIEW_PROPERTY(request, NSDictionary);
RCT_EXPORT_VIEW_PROPERTY(onBannerEvent, RCTBubblingEventBlock);
2017-06-20 12:22:09 +00:00
#endif
2017-06-16 14:20:34 +00:00
@end