Я использую реагирующую навигацию. У меня есть три иконки для нижнего навигатора, и я хочу показать только two icons(screen1 & screen2)
и hide the other(screen3)
.
Как мне hide
значок и метку screen3?
Этомой код:
const ButtomTabNavigator = createBottomTabNavigator(
{
screen1: {
screen: screen1,
navigationOptions: ({ navigation }) => ({
tabBarLabel: 'screen1',
header: null,
tabBarIcon: ({ tintColor }) => (
<Image style={{ width: 18, height: 18, tintColor: tintColor }}
source={require('./Components/Assets/iconMyGrey.png')}
/>
),
})
},
screen2: {
screen: screen2,
navigationOptions: {
header: null,
tabBarLabel: 'screen2',
tabBarIcon: ({ tintColor }) => (
<Image style={{ width: 18, height: 18, tintColor: tintColor }}
source={require('./Components/Assets/iconListGrey.png')}
/>
),
}
},
screen3: {
screen: screen3,
navigationOptions: {
header: null,
tabBarLabel: 'screen3',
tabBarIcon: ({ tintColor }) => (
<Image style={{ width: 21, height: 17, tintColor: tintColor }}
source={require('./Components/Assets/iconReservationMint.png')}
/>
),
}
},
},
{
tabBarOptions: {
activeTintColor: '#16bb92',
},
shifting: true,
}
)
Любые советы или комментарии будут очень благодарны! Заранее спасибо:)