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

32 lines
577 B
Objective-C

#import "RNFirebaseAdMobBannerManager.h"
#import "BannerComponent.h"
@implementation RNFirebaseAdMobBannerManager
RCT_EXPORT_MODULE();
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
@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);
#endif
@end