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

94
Visualizações
React Native Deep Link Passes Undefined Parameters

I have implemented deep link navigation with react-navigation (v6) in my RN app, but I am unable to pass the parameters. When I open my app with app://profile/123, my param 123 is passed as undefined in navigation state.

Currently my linking.ts looks like this:

const config = {
  screens: {
    BottomNavigator: {
      screens: {
        ProfileNavigator: {
          screens: {
            ProfileScreen: {
              path: 'profile/:id',
              parse: {
                id: (id) => `${id}`,
              },
              exact: true,
            },
          },
        },
        SearchNavigator: { screens: { SearchScreen: 'search/:id' } },
      },
    },
  },
};

const linking = {
  prefixes: ['whitelabel://app'],
  config,
};

export default linking;

I am trying to pass id to profile screen. The screen is passed correctly and opens the app on the right page, but the id is not passed through and returns undefined.

This is what I get from navigation state when the page opens:

{"index": 0, "key": "stack-jrLYL7iuBFvpeerYqTdcp", "routeNames": ["Profile"], "routes": [{"key": "Profile-lju0Bmsahv4w_wdmRUlMS", "name": "Profile", "params": undefined}], "stale": false, "type": "stack"}
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