Get a one or more value for a key or array of keys from AsyncStorage
Parameters
key: String | Array
, A key or array of keys
Returns: Promise
Save a key value pair to AsyncStorage.
Parameters
key: String
, The key
value: Any
, The value to save
Returns: Promise
Updates the value in the store for a given key in AsyncStorage. If the value is a string it will be replaced. If the value is an object it will be extended.
Parameters
key: String
, The key
value: Value
, The value to update with
Returns: Promise
Delete the value for a given key in AsyncStorage.
Parameters
key: String
, The key
Returns: Promise
Get all keys in AsyncStorage.
Returns: Promise
, A promise which when it resolves gets passed the saved keys in AsyncStorage.
License: MIT
Overview: A minimalistic wrapper around React Native's AsyncStorage.