package com.reactnativenavigation.views;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.WindowManager;

import com.facebook.react.ReactRootView;


public class CustomDialog extends Dialog {

	private View component;

	public CustomDialog(@NonNull Context context, @NonNull View component) {
		super(context);

		this.component = component;
		init();
	}

	private void init() {
		addContentView(component, new WindowManager.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
	}
}
