📌  相关文章
📜  如何在反应导航 5 中从抽屉中隐藏屏幕 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:28.078000             🧑  作者: Mango

代码示例3
function DrawerNavigator() {
  return (
    
       {
          const filteredProps = {
            ...props,
            state: {
              ...props.state,
              routeNames: props.state.routeNames.filter(routeName => {
                routeName !== 'Home';
              }),
              routes: props.state.routes.filter(route => route.name !== 'Home'),
            },
          };
          return (
            
              
            
          );
        }}>
        
        
        
      
    
  );
}