react-native-firebase/ios/RNFirebase/admob/BannerComponent.h

30 lines
648 B
C
Raw Normal View History

2017-06-16 14:20:34 +00: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 14:20:34 +00:00
@interface BannerComponent : UIView <GADBannerViewDelegate>
@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