Skip to content

Memory Storage on Mobile Devices #621

Closed Answered by arthurfiorette
maioradv asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @maioradv, memory storage just saves everything on a js variable, without any persistent storage or else. I guess its up to how many RAM the user's device have. And it will reset every time the user open/close the app.

If you're running expo, Device.getMaxMemoryAsync()(androind only) or Device.totalMemory will get you the exact values of how many ram is available at runtime.

However, if you're thinking about RAM usage/limit, probably you should use a persistent storage and save cache on the filesystem, but its up to your use case.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maioradv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants