This video is available to students only

Async Storage

AsyncStorage is an asynchronous, unencrypted, persistent, key-value storage system for React Native.

AsyncStorage#

AsyncStorage is an asynchronous, unencrypted, persistent, key-value storage system for React Native.

AsyncStorage is a good place to store information relating to user login, offline cache, or any similar data that needs to persist between launches. It has been moved out from the React Native core to be a separate library as a part of the Lean Core initiative, and therefore needs to be integrated manually.

Data in AsyncStorage gets deleted on app uninstall and is not restored on installing the app again. So back up data to iCloud or your app servers for anything you might need across installs.

Installation#

To install, simply use yarn:

Start a new discussion. All notification go to the author.