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

193
Vistas
redirect to different pages during login and registration in react native

I use context Api for login and logout , but I faced a situation where when login from login page it got page A but when user login direct after registration go to page B , using react navigation please help me, I am new to react native, I think it should change the Initial Route Name depending upon certain condition and how? please help.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Does the user need to enter his credentials to login after registration?

If yes: then you can provide a param to the route indicating that it's a new user and use that param to navigate to a different screen.

If not: then the function that does the login can be reused by both login and registration screen. But it can receive a param indicating the source where that function is being called. Based on the source you can conditionally navigate to one screen or the other.

If you provide code I can translate the above to code.

about 4 years ago · Juan Pablo Isaza Denunciar
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