#import <ZoomVideoSDK/ZoomVideoSDK.h>
#import "RNZoomCameraShareView.h"

@implementation RNZoomCameraShareView

+ (instancetype)sharedInstance {
    static RNZoomCameraShareView *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[self alloc] init];
    });
    return instance;
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _cameraView = [[UIView alloc] initWithFrame:frame];
        _cameraView.backgroundColor = [UIColor blackColor];

        // Add _shareCameraView as a subview
        [self addSubview:_cameraView];
    }
    return self;
}

- (UIView* )getCameraShareView {
    return _cameraView;
}

@end

