First as mentioned in other answers using react native Dimensions API in Android the window height= screen height - (status bar height + navigation bar height)
After few hours of investigations I found that in some Android devices Dimensions API gives a wrong window height number.
the solution for is using [react-native-extra-dimensions-android][1]
[1]: https://github.com/Sunhat/react-native-extra-dimensions-android it give you the following information:
REAL_WINDOW_HEIGHT - Actual height of screen including system decor elements
REAL_WINDOW_WIDTH - Actual width of screen including system decor elements
STATUS_BAR_HEIGHT - Height of the status bar
SOFT_MENU_BAR_HEIGHT - Height of the soft menu bar (supported on most new Android devices)
then you can calculate window height: REAL_WINDOW_HEIGHT -(STATUS_BAR_HEIGHT + SOFT_MENU_BAR_HEIGHT)