Detect if android device uses gestures or buttons for navigation

Hi there,

I want to know if its possible in typescript to programmatically detect if an android device is using gestures or buttons for navigation. I’m having trouble with the layout of my app. On android devices that have gesture navigation enabled (& no gesture guide bar) the app doesn’t stretch all the way across the device but contains a gap at the top (about 5-10% of the screen), however if the gesture guide bar is enabled or button navigation is used everything works as expected.

Any help is appreciated! Thanks.