D
D
DSmith2021-09-27 17:14:37
React Native
DSmith, 2021-09-27 17:14:37

How to save application state and get data on restart?

There is an application for android on react native.
Uses react-native-image-picker ( link ) to access the camera.
The user takes his photo (avatar) and sends it to the server.

There was a problem on some phones - the phone apparently kills the application after opening the camera. And after taking a photo, he opens it again.
The problem is described here .

The topic above suggests saving the state of the application and opening it on the desired screen after the snapshot.
Tell me - how to save the state (probably in storage?) And how to get data from the camera with such a return to the application?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question