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

99
Visualizações
React native deeplinking is not navigating inside stack navigation

I'm using react-native navigation 5 in my app. I'm trying to add deeplinking. I create a file for config

const config = {
  screens: {
    Home: 'home',
    Profile: {
      path:"starter/profile/:id",
      parse: {
        id: (id) => `${id}`
      },
    },
    Notifications: "notifications",
    Settings: "settings"
  
  },
};

const linking = {
  prefixes: ["yenir://app"],
  config,
};

export default linking;

In switch navigator I'm trying to navigate this stack SwitchNavigator > Starter > Settings

Switch navigator

render() {

    const SwitchNavigator= createSwitchNavigator(
    {
   // Starter: AdjustTest,
    Starter:Teststk,
    //  Starter:TstStack,
    App: AppStack,
    Auth: LoginStack
  },
  {
    initialRouteName:'Starter',
    resetOnBlur:false,
    backBehavior:null
  
  }
);

The stack screens I want to navigate

const Testst = createStackNavigator();

function Teststk() {
  return (
    <Testst.Navigator>
      <Testst.Screen name="Home" component={TestStack}  />
      <Testst.Screen name="Notifications" component={TestStack}  />
      <Testst.Screen name="Profile" component={TestStack}  />
      <Testst.Screen name="Settings" component={TestStack}  />
    </Testst.Navigator>
  )
}

The link url user clicks. test://app/starter/profile/2

I can't get inside this page. How should I change the config, the routing map. Thank you

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