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

164
Vistas
Starting from the screen where you left off after exiting the application -RN

I'm new to React Native. I have prepared an application with 5 screens. For example, the user is on the 5th screen and exit the application. When user re-enter the application, I want it to start on the 5th screen again. I'm also trying to protect the user's states on the 5th screen. How can i do that in RN?

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

0

React-Native has an api called AsyncStorage to help you with that.

It allows you to store data locally on the device and retrieve it when you need it, even when the app has been closed. You can find the package here: AsyncStorage

You can use it for you app to store the navigation state & 5th screen state and use that to set the states when the user (re-)opens your app.

In case you're using React-Navigation, they have a section in there docs you can follow: https://reactnavigation.org/docs/state-persistence/

about 4 years ago · Juan Pablo Isaza Denunciar

0

Under componentDidMount/useEffect update the last seen screen name in async storage. And navigate to last seen screen name on app open.

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