Search code examples
react-nativecachingexpo

How can I cache data in react native expo?


I would like to store my data in some cache in react native expo.

Which technic (packages) should I use?

i would like to store some json data.

Thank you.


Solution

  • You can use

    AsyncStorage

    MMKV Storage

    If you need a complete database solution you can try WatermelonDB

    I strongly suggest the MMKV Storage, it is blazingly fast compared to AsyncStorage. This completely depends on your use-cases and usages. So pick carefully :) However, if you need a basic cache, you cannot go wrong with AsyncStorage, it is very basic.

    I suggest you that read some documentation for caching solutions first :)