package com.dyteMobileSdk;

import android.app.Activity;

import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;

public class ReactInstanceManagerHolder {
    public static ReactInstanceManager reactInstanceManager;

    static Activity getCurrentActivity() {
        ReactContext reactContext
                = reactInstanceManager != null
                ? reactInstanceManager.getCurrentReactContext() : null;
        return reactContext != null ? reactContext.getCurrentActivity() : null;
    }
}
