[英]Remove Header from top of Stack Navigator in React Native
I am having difficulties trying to remove the header that appears on the top of my app when using the navigation stack.我在尝试删除使用导航堆栈时出现在我的应用程序顶部的标题时遇到了困难。 Any help is much appreciated, as I have looked at similar forums trying to solve this issue, but I could not find a solution:
非常感谢任何帮助,因为我看过类似的论坛试图解决这个问题,但我找不到解决方案:
const NavigationTab = createBottomTabNavigator({ Home: { screen: ScreenOne, }, Explore: { screen: ScreenTwo }, SignUp: { screen: ScreenThree } }); const Stack = createStackNavigator({ NavigationTab: NavigationTab, ScreenFour: {screen: ScreenFour}, }); const AppContainer = createAppContainer(Stack) export default AppContainer;
This is how I've currently got the stack navigator set up in a React Native project I've been working on.这就是我目前在我一直致力于的 React Native 项目中设置堆栈导航器的方式。
const MainStackNavigator = createStackNavigator(App_Routes, {
initialRouteName: 'Base',
headerMode: 'none',
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.