rxjs - 如何从 react 版本 6.x 的抽屉导航器中的堆栈导航器中删除标题

标签 rxjs react-native react-navigation-stack react-navigation-drawer

this is my stack navigator enter image description here

this is my drawer navigator enter image description here

the problem is my Drawer navigtor header in stack navigator screen 2 - [name='Details',component='Anote'],
I want to remove the drawer navigator from the below picture [ie. one with the title=[Notes Maker]]

enter image description here

最佳答案

  • 如果您删除 stack.Navigator 的 header ,请使用 screenOptions 属性并将 false 设为 headerShown> :

    screenOptions={{headerShown:false}}
    
  • 但是如果您想删除 Drawer.Navigator 的标题,请使用选项属性并使 headerShownfalse:

    options={{headerShown: false}}
    

关于rxjs - 如何从 react 版本 6.x 的抽屉导航器中的堆栈导航器中删除标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66873977/

相关文章:

javascript - RxJS - 发生错误时可观察对象未完成

angular - 如何从 Observable 内部返回 Observable

react-hooks - 在 React Native 中移动到另一个屏幕时如何卸载屏幕

javascript - 未触发可观察的 next() 回调

javascript - 在 React Native 中使用 ObjectiveC 库

javascript - 为什么组件在 this.setState() 完成状态设置之前渲染?

Play 商店中 size = null 的 Android 应用

reactjs - 如果 React Native 中的 React Navigation 库提供的堆栈导航器组件不存在 initialRouteName Prop 会发生什么

react-native - withNavigation 只能用于导航器的 View 层次结构

angular - 取消订阅后订阅