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

202
Visualizações
Navigation error: Null is not an object (evaluating '_navigation$getParam.id')

I don't know why my navigation isn't working properly, it throws me the following error every time I want to navigate back to my EventAssistants screen from my UserProfile screen:

TypeError: Null is not an object (evaluating '_navigation$getParam.id')

I have my stack navigators defined as follows:

const SearchStack = createStackNavigator(
  {
    Map: Map,
    Search: Search,
    SearchPeople: SearchPeople,
    FollowerProfile: Profile, // <- This is where I try to go back to the EventAssistants screen
    ...
  },
  {
    initialRouteName: 'Map',
    ...
  },
);

const EventEditStack = createStackNavigator(
  {
    View: EventView,
    EditEvent: EditEventView,
    EventAssistants: EventAssistants, // <- This is where I try to go back
    ...
  },
  {
    initialRouteName: 'EventView',
    ...
  },
);

And over here I have the script of the button that should navigate to the EventAssistants screen, it is defined on the UserProfileScreen:

const {returnToScreen, imHostOrCoHost} = eventAssistantsItem;
item = itemEvent.id;
navigation.navigate('EventAssistants', {item, returnToScreen, imHostOrCoHost});

As you can see, the EventAssistants screen takes some parameters, and testing with console.log()s on the EventAssistants gives me the expected parameters when navigating from any screen to it, including UserProfile. So, how can I solve this?

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