i am working on creating and app that will download, upload, store many images. i am trying to see how best to manage the data for performance.
i am using Redux to store the state of my app and i use redux-persist to store the state in AsyncStorage.
but i also understand that create-react-native-app also provides a module called SQLite in the expo package. (https://docs.expo.io/versions/latest/sdk/sqlite.html).
i am trying to find out where it would be a good idea to store my data.
should i store all my images (base64 encoded) into redux? this could amount to up to 100mb of data. or should i store the images into SQLite where i assume the data is stored flat like in an sqlite “.db” file?
I would store the images to the filesystem using FileSystem.downloadAsync
. Then you can store the mapping from unique ID to image filepath in SQLite or Redux + AsyncStorage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With