React Native Get de altura de la barra de navegación

import { Dimensions} from "react-native";
      const screenHeight = Dimensions.get('screen').height;
      const windowHeight = Dimensions.get('window').height;
      const navbarHeight = screenHeight - windowHeight
Developer Jaism