//
//  JYWhiteBoardViewManager.m
//  WhiteBoard
//
//  Created by yrx on 2021/3/17.
//  Copyright © 2021 Facebook. All rights reserved.
//

#import "JYWhiteBoardViewManager.h"
#import "JYWhiteBoardManager.h"

@implementation JYWhiteBoardViewManager
RCT_EXPORT_MODULE(JYWhiteBoardView)
RCT_CUSTOM_VIEW_PROPERTY(strokeColorRGB, NSDictionary, WhiteBoardView){
    [[JYWhiteBoardManager shareManager] setStrokeColorWithOptions:json];
}

- (UIView *)view
{
    WhiteBoardView *boardView = [[WhiteBoardView alloc] init];
    [JYWhiteBoardManager shareManager].boardView = boardView;
   return boardView;
}

@end
