#import <React/RCTViewManager.h>
#import <React/RCTUIManager.h>
#import "RCTBridge.h"
#import "Utils.h"
#import "TruliooView.h"
#import <TruliooCaptureSDK/TruliooCaptureSDK-Swift.h>

@interface DocvSdkViewManager : RCTViewManager
@end

@implementation DocvSdkViewManager

RCT_EXPORT_MODULE(DocvSdkView)

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

RCT_CUSTOM_VIEW_PROPERTY(nativeCameraViewProps, NSString, UIView)
{
    TruliooView* truliooView = (TruliooView*)view;
    [truliooView renderCamera:json];
}

RCT_EXPORT_VIEW_PROPERTY(onCaptureRegionChanged, RCTDirectEventBlock)

@end
