#import <React/RCTViewManager.h>
#import <React/RCTUIManager.h>
#import "RCTBridge.h"

@interface BarcodeScannerViewManager : RCTViewManager
@end

@implementation BarcodeScannerViewManager

RCT_EXPORT_MODULE(BarcodeScannerView)

- (UIView *)view
{
  return [[UIView alloc] init];
}

RCT_EXPORT_VIEW_PROPERTY(onScanResultListener, RCTBubblingEventBlock)
RCT_EXPORT_VIEW_PROPERTY(flashModeEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY(frameWidth, NSNumber)
RCT_EXPORT_VIEW_PROPERTY(frameHeight, NSNumber)
RCT_EXPORT_VIEW_PROPERTY(frameBorderColor, NSString)
RCT_EXPORT_VIEW_PROPERTY(acceptFormats, NSDictionary)
@end
