I ask about this because when you hit cmd + r, all components will be set to their default state. To reproduce this using an application downloaded from the application store, could you close the application by double-clicking the home button, swipe the screen in the application, and then open it again?
I donβt have any apps in the store yet, so I canβt verify this.
Would storing the appropriate data in AsyncStorage good way to maintain state after a reboot?
For example: I have a registered user whose information is stored in a state. If I update the application, this user will be lost and forced to log in. However, if I save user information before AsyncStorage , and I can restore them according to componentDidMount .
source share