Max Kenney
Max Kenney

Reputation: 43

What method should I use to store collections of data locally using React Native?

I am building a react native app that stores data on your day, like a diary.

Here, each day, you would store data on:

I assumed I would store this in some sort of class somewhere, however looking into React and experimenting with AsyncStorage it seems you can only store data one at a time and it must be a string.

My question is what would be the best method to store data as a collection like this? Should I stringify it? Or is there another method to store data like this not using AsyncStorage?

Thanks a lot

Upvotes: 0

Views: 431

Answers (1)

Ardy Febriansyah
Ardy Febriansyah

Reputation: 768

There many method can can used on react native to saving / persisting data, if you only store small data, using AsyncStorage is fit for your case. But if you need storing structured data and large amount, i recommend using:

Upvotes: 2

Related Questions