In react-navigation, how do I get the dimensions of the visible area between the header and TabBar?

后端 未结 4 1487
庸人自扰
庸人自扰 2021-02-15 11:43

const viewableWindowHeight = Dimensions.get(\'window\').height - Header.HEIGHT - ???

How do I get the TabBar height? What if the iPhone is X? How can I take that into a

4条回答
  •  遥遥无期
    2021-02-15 12:32

    In the new version use

    import { useHeaderHeight } from "react-navigation-stack"; console.log(useHeaderHeight());

提交回复
热议问题