2
0
mirror of synced 2025-01-09 13:45:50 +00:00

30 lines
648 B
C
Raw Normal View History

2017-06-16 15:20:34 +01:00
#import <React/RCTComponent.h>
#import <React/RCTBridgeModule.h>
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
#import <GoogleMobileAds/GADBannerView.h>
#import <GoogleMobileAds/GADBannerViewDelegate.h>
2017-06-16 15:20:34 +01:00
@interface BannerComponent : UIView <GADBannerViewDelegate>
@property GADBannerView *banner;
@property (nonatomic, assign) BOOL requested;
2017-06-16 15:20:34 +01: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 13:22:09 +01:00
@interface BannerComponent : NSObject {
2017-06-16 15:20:34 +01:00
}
@end
#endif