/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentHObjCpp.js
*/

#import <Foundation/Foundation.h>
#import <React/RCTDefines.h>
#import <React/RCTLog.h>

NS_ASSUME_NONNULL_BEGIN

@protocol RCTATBannerViewViewProtocol <NSObject>

@end

@protocol RCTATNativeAdViewViewProtocol <NSObject>
- (void)updateAssetView:(NSInteger)assetViewTag assetViewName:(NSString *)assetViewName;
- (void)renderNativeAd;
@end

RCT_EXTERN inline void RCTATNativeAdViewHandleCommand(
  id<RCTATNativeAdViewViewProtocol> componentView,
  NSString const *commandName,
  NSArray const *args)
{
  if ([commandName isEqualToString:@"updateAssetView"]) {
#if RCT_DEBUG
  if ([args count] != 2) {
    RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"ATNativeAdView", commandName, (int)[args count], 2);
    return;
  }
#endif

  NSObject *arg0 = args[0];
#if RCT_DEBUG
  if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"number", @"ATNativeAdView", commandName, @"1st")) {
    return;
  }
#endif
  NSInteger assetViewTag = [(NSNumber *)arg0 intValue];

NSObject *arg1 = args[1];
#if RCT_DEBUG
  if (!RCTValidateTypeOfViewCommandArgument(arg1, [NSString class], @"string", @"ATNativeAdView", commandName, @"2nd")) {
    return;
  }
#endif
  NSString * assetViewName = (NSString *)arg1;

  [componentView updateAssetView:assetViewTag assetViewName:assetViewName];
  return;
}

if ([commandName isEqualToString:@"renderNativeAd"]) {
#if RCT_DEBUG
  if ([args count] != 0) {
    RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"ATNativeAdView", commandName, (int)[args count], 0);
    return;
  }
#endif

  

  [componentView renderNativeAd];
  return;
}

#if RCT_DEBUG
  RCTLogError(@"%@ received command %@, which is not a supported command.", @"ATNativeAdView", commandName);
#endif
}

NS_ASSUME_NONNULL_END