package com.vntel.cccd;

import androidx.annotation.Nullable;

import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.ViewGroupManager;
import com.facebook.react.uimanager.annotations.ReactProp;

public class RNVntelCCCDViewManager extends ViewGroupManager<RNVntelCCCDMRZView> {

    public static final String REACT_CLASS = "RNVntelCCCDMRZView";
    private final ReactApplicationContext mContext;
    public RNVntelCCCDViewManager(ReactApplicationContext context) {
        this.mContext = context;
    }
    @Override
    public String getName() {
        return REACT_CLASS;
    }

    @Override
    protected RNVntelCCCDMRZView createViewInstance(ThemedReactContext themedReactContext) {
        return new RNVntelCCCDMRZView(themedReactContext);
    }

    @ReactProp(name="layout")
    public void setLayout(RNVntelCCCDMRZView view, @Nullable ReadableArray layout) {
        view.setLayout(layout, mContext);
    }
}
