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

160
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
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