2017-06-16 14:20:34 +00:00
|
|
|
#import <React/RCTComponent.h>
|
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
|
|
|
|
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
|
|
|
|
|
2017-08-17 16:25:51 +00:00
|
|
|
#import <GoogleMobileAds/GADBannerView.h>
|
|
|
|
#import <GoogleMobileAds/GADBannerViewDelegate.h>
|
2017-06-16 14:20:34 +00:00
|
|
|
|
|
|
|
@interface BannerComponent : UIView <GADBannerViewDelegate>
|
|
|
|
|
2017-06-16 14:35:12 +00:00
|
|
|
@property GADBannerView *banner;
|
|
|
|
@property (nonatomic, assign) BOOL requested;
|
2017-06-16 14:20:34 +00:00
|
|
|
|
|
|
|
@property (nonatomic, copy) NSString *size;
|
|
|
|
@property (nonatomic, copy) NSString *unitId;
|
|
|
|
@property (nonatomic, copy) NSDictionary *request;
|
|
|
|
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onBannerEvent;
|
|
|
|
|
|
|
|
- (void)requestAd;
|
|
|
|
|
|
|
|
@end
|
|
|
|
#else
|
|
|
|
|
2017-06-20 12:22:09 +00:00
|
|
|
@interface BannerComponent : NSObject {
|
2017-06-16 14:20:34 +00:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|