Many Android Phones Like Google Pixel 3 and Xiaomi Mi Mix 2 etc, Does not have any on-screen or physical navigation buttons, they work with gestures. In React-Native, this is a huge problem, because if I detect the height of the screen, On modern devices, this leaves some empty screen from the bottom.
I've tried this solution, it works fine with devices with either hardware or on-screen buttons, but returns null for modern devices with no buttons. Determine whether hardware buttons are drawn on screen in React Native
My current RN version: 0.59.5