1.

Explain Async Storage in React Native and also define when to use it and when to not?

Answer»
  • Async STORAGE is the React Native equivalent of Local Storage from the web.
  • Async Storage is a community-maintained module for React Native that provides an asynchronous, UNENCRYPTED, key-value store. Async Storage is not shared between apps: every app has its own sandbox environment and has no access to data from other apps.
DO USE ASYNC STORAGE WHEN..DON'T USE ASYNC STORAGE FOR..
PERSISTING non-sensitive data ACROSS app runsToken storage
Persisting Redux stateSecrets
Persisting GraphQL state 
Storing GLOBAL app-wide variables 


Discussion

No Comment Found