How to expose an android/ios folder from docker container to android studio/xcode

I am using docker for my development environment, as we know we can directly connect to a running docker container from vscode remote explorer for development. I want to know how we can expose the android and ios folders to the android studio in a host machine. If I want to try the type=mount flag when running docker I am getting some error also if I do it the android and ios folders are generated after the container loaded before I only have src/app which is not built for android/ios. to build this before moving it to docker I am using an old version of ionic in my local machine so I want this to be built inside the docker.