Expo FileSystem vs React Native AsyncStorage

Hi all,

I am starting to learn expo, I tried to search Google and this forum, but I can’t find much examples about the different usecase for the FileSystem and AsyncStorage.

Is there a significant difference between them, say: one of them is better at storing images and the other better at storing simple values?



Yes, AsyncStorage is a key/value store, so not meant for large chunks of data like files, but rather “simple values” as you say.

If you Google for asyncstorage limits you’ll find many posts related to this. It seems that the default limit on Android for the total data stored in AsyncStorage is 6m, while on iOS it seems only limited by the amount of storage on the device. Nevertheless if you’re trying to store images or videos etc. you should probably store them in the filesystem and use the FileSystem module to access them.