Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is AsyncStorage permanent or temporary?

I'm new with React Native and i would like to know after closing my application the AsyncStorage is clear or not. Is there any alternatives for AsyncStorage.

like image 433
Naren Avatar asked Oct 09 '17 13:10

Naren


2 Answers

It does not clear the storage once the app is closed.

You can however clear the storage / cache withing settings -> apps.

like image 94
flaky Avatar answered Oct 09 '22 05:10

flaky


When you use AsyncStorage, your app is going to persist the data on the storage system that is global to the app.

You can see how it works and the methods available from the oficial's docs https://facebook.github.io/react-native/docs/asyncstorage.html#asyncstorage

like image 21
ricardoorellana Avatar answered Oct 09 '22 06:10

ricardoorellana