Native Mobile - Mapbox re renders when keyboard pops up

I have a mapbox element serving as the background of my app. Everything else are in floating groups to render above the map.

Whenever I click on an input element and the keyboard pops up, the map flickers and re renders.
I know the solution to this is to set the map height to a fixed number of pixels but that won’t work since I need the map to stretch the whole height of the screen, and screen sizes vary per device. Setting the height to 100% doesn’t work either.

Am I missing something here?