Developing React Native with openjdk docker image

Hi, I’m Newby with docker and trying to develop some React Native App with docker. Basically, what I’m trying to do is to develop an app and run the Android Studio Virtual Device Emulator without installing java locally. I want to run a java docker image and set the correct environment variables pointing to java docker. Is it possible?

Appreciate any help