Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 如何在React Native Navigation V5上从选项卡栏隐藏选项卡?_React Native_React Native Navigation - Fatal编程技术网

React native 如何在React Native Navigation V5上从选项卡栏隐藏选项卡?

React native 如何在React Native Navigation V5上从选项卡栏隐藏选项卡?,react-native,react-native-navigation,React Native,React Native Navigation,返回( ( ), }}> {(道具)=>( )} {(道具)=>( )} [...] ); 请原谅我打开这个问题。但我在谷歌上搜索了很多,没有找到解决问题的方法。 我只想每次都隐藏该选项卡您可以使用此选项Tabbar visible在Tabbar中隐藏选项卡 <Tab.Screen name="Ofertas" options={{ //....... tabBarVisible: false }}> 您

返回(
(
),
}}>
{(道具)=>(
)}
{(道具)=>(
)}
[...]
);
请原谅我打开这个问题。但我在谷歌上搜索了很多,没有找到解决问题的方法。
我只想每次都隐藏该选项卡

您可以使用此选项
Tabbar visible
在Tabbar中隐藏选项卡

<Tab.Screen
      name="Ofertas"
      options={{
        //.......
        tabBarVisible: false
}}>

您可以使用此选项将选项卡隐藏在选项卡栏中

<Tab.Screen
      name="Ofertas"
      options={{
        //.......
        tabBarVisible: false
}}>

我的解决方案是在react native apper内部工作

/node_modules/react native paper/src/components/BottomNavigation.tsx

renderTouchable = (props: TouchableProps) => {
 if(props.route?.name !== "Catalog")
   return <Touchable {...props} />
}
renderTouchable=(道具:触控道具)=>{
if(道具路径?.name!=“目录”)
返回
}

我不知道这是否是一个好的实践,但我需要它,react导航维护人员也不帮我

好吧,我的解决方案是在react native apper内部工作

/node_modules/react native paper/src/components/BottomNavigation.tsx

renderTouchable = (props: TouchableProps) => {
 if(props.route?.name !== "Catalog")
   return <Touchable {...props} />
}
renderTouchable=(道具:触控道具)=>{
if(道具路径?.name!=“目录”)
返回
}

我不知道这是否是一个好的实践,但我需要它,而且react导航维护人员也不帮我

看起来这个选项不存在。我已经把它放在标签栏上了,但仍然出现在标签栏上。看起来这个选项不存在。我已经把它放在标签栏里了