Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!