在 React Native Navigation 中隐藏选项卡中的标签
Hiding Label in Tab in React Native Navigation
我在 React Native 选项卡中隐藏标签时遇到问题。我正在使用 react-navigation/material-bottom-tabs.
请看下面我的代码
<Tab.Navigator
initialRouteName="Requests"
backBehavior="initialRoute"
shifting={true}
activeColor={theme.colors.primary}
inactiveColor={color(theme.colors.text).alpha(0.6).rgb().string()}
sceneAnimationEnabled={false}
showLabel={false}
>
<Tab.Screen
name="Requests"
component={Requests}
options={{
tabBarIcon: "comment-question-outline",
tabBarColor,
}}
/>
...
</Tab.Navigator>
它的标签={false} 不是 showLabel={false}
<Tab.Navigator
initialRouteName="Requests"
backBehavior="initialRoute"
shifting={true}
activeColor={theme.colors.primary}
inactiveColor={color(theme.colors.text).alpha(0.6).rgb().string()}
sceneAnimationEnabled={false}
labeled={false}
>
我在 React Native 选项卡中隐藏标签时遇到问题。我正在使用 react-navigation/material-bottom-tabs.
请看下面我的代码
<Tab.Navigator
initialRouteName="Requests"
backBehavior="initialRoute"
shifting={true}
activeColor={theme.colors.primary}
inactiveColor={color(theme.colors.text).alpha(0.6).rgb().string()}
sceneAnimationEnabled={false}
showLabel={false}
>
<Tab.Screen
name="Requests"
component={Requests}
options={{
tabBarIcon: "comment-question-outline",
tabBarColor,
}}
/>
...
</Tab.Navigator>
它的标签={false} 不是 showLabel={false}
<Tab.Navigator
initialRouteName="Requests"
backBehavior="initialRoute"
shifting={true}
activeColor={theme.colors.primary}
inactiveColor={color(theme.colors.text).alpha(0.6).rgb().string()}
sceneAnimationEnabled={false}
labeled={false}
>