Best way to use Offline storage for images in React Native

952 views Asked by At

I'm stuck for making my react native app offline for storing the images. what is the best way to use, shall i go with AsyncStorage, Real m, CouchDB or WatermelonDB. Actually i am new to React Native, so i want to use the best solution.

Please help me.

Thanks in advance.

1

There are 1 answers

0
William On

By the common ways. There are no databases actually store media. They actually save media files in physic / cloud servers and store only access url in database.

So, to achieve your technical goal. You can use react-native-fs to interact with your media files. And save their url into your database like Realm, PouchDB, AsyncStorage.

I think AsyncStorage is simple to setup and suitable for save media url.