Skip to content

Latest commit

 

History

History
75 lines (30 loc) · 1.03 KB

index.md

File metadata and controls

75 lines (30 loc) · 1.03 KB

Global


get(key)

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(key, value)

Save a key value pair to AsyncStorage.

Parameters

key: String, The key

value: Any, The value to save

Returns: Promise

update(key, value)

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(key)

Delete the value for a given key in AsyncStorage.

Parameters

key: String, The key

Returns: Promise

keys()

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.