【问题标题】:Hide heading of Naviagation in React Native在 React Native 中隐藏导航的标题
【发布时间】:2021-01-09 12:24:30
【问题描述】:

我想隐藏顶部导航,我该怎么办。谢谢你的帮助。enter image description here

【问题讨论】:

  • 嗨,您应该包含更多信息并包含您的代码。你用什么包来导航等等。

标签: reactjs react-native native


【解决方案1】:

为您的堆栈中的屏幕设置选项 headerShown 为 false:

<YourStack.Screen
        name="YourScreen"
        component={YourComponent}
        options={{ headerShown: false }}
      />

【讨论】:

  • 谢谢先生 :)
猜你喜欢
  • 2017-11-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-03-14
  • 2015-07-28
  • 2021-06-06
  • 1970-01-01
  • 2019-06-09
相关资源
最近更新 更多