How to programatically change the color of the navigation bar on android

I’m currently creating a POC with Ionic and react, and I have to admit I am loving the process, from the small APK’s to the power of coding react with ionic components and getting the native backing from capacitor when needed.

However there is one issue I cant seem to get closure on, how do you change the color of the navigation bar on android?

in expo it’s extremely easy to install a expo plugin that does this, so you can change the color at any time on the app.

Has anyone had the same issue with Ionic and React and how did you overcome this?

found this gem: GitHub - hugotomazi/navigation-bar: Navigation Bar plugin for Capacitor

going to try it and report back.