@DRConstellation wrote:
I am trying to set the height of elements on a page by fetching the value from platform.height() and then dynamically assigning a value based on the height and some calculations.
The issue is that platform.height() will include the space taken up by the android navbar (https://i.stack.imgur.com/9F1JT.png) and this is causing the height to be calculated incorrectly.
Is there a way to determine if the device is using a hardware or software nav bar? From there I could calculate the height of the bar (if it is software) and determine how much space to subtract from the platform.height() value.
Posts: 1
Participants: 1