How do I persist state for android apps killed in the background in react-native

后端 未结 1 1301
抹茶落季
抹茶落季 2021-02-18 21:14

When an Android App is sent to the background, it can persist its instance state in case it gets killed due to low memory (see Activity:onSaveInstanceState() and the bundle argu

相关标签:
1条回答
  • 2021-02-18 21:58

    If you are using Redux for state management you should probably use redux-persist. If not you have a couple of different options:

    • AsyncStorage
    • Realm React Native
    0 讨论(0)
提交回复
热议问题