Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda