Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

358
Visualizações
React native: disable tab press for some icons (without removing icons) on bottom tabs navigation

in my react native bottom tabs I want to disable some tabs based on a few conditions, say I want to disable Profile tab WITHOUT removing actual tab screen or icon, so is there a way to intercept user pressed tab icon, check if pressed tab is Profile and if it is DO NOTHING instead of navigate to Profile screen?

Thanks in advance.

My tab component:

<Tab.Navigator
        screenOptions={({ route }) => ({
        headerShown: false  ,   
        swipeEnabled: true,  
        tabBarHideOnKeyboard: true,
        tabBarActiveTintColor: "#E13545",
        tabBarInactiveTintColor: "rgb(125,125,125)",
        tabBarShowLabel: false,
        tabBarLabelStyle: {
    fontSize: 10,
    margin: 0,
    padding: 0,
    textTransform: "none",
    fontFamily: "AirbnbCerealBook"
  },
  tabBarItemStyle: {
    paddingVertical: 0
  },
  tabBarStyle: [
    { 
        width:root.uiStore.width+4,height:60,backgroundColor:'white',borderTopWidth:0,position:'absolute',left:0,bottom:0,right:0,borderTopWidth:1,borderTopColor:'rgba(0,0,0,0.1)',borderRightWidth:1,borderRightColor:'rgba(0,0,0,0.1)',borderLeftWidth:1,borderLeftColor:'rgba(0,0,0,0.1)',elevation:10,overflow:'hidden',borderTopLeftRadius:35,borderTopRightRadius:35,
    },
        null
  ],
    })}
        >
        <Tab.Screen name="Home" component={STACK1} />
        <Tab.Screen name="Favorites" component={STACK2} />
        <Tab.Screen name="Discounts" component={STACK3} />
        <Tab.Screen name="Profile" component={STACK4}/>
    </Tab.Navigator>
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda