How do I set multiple values within Asyncstorage
Please check this docs at link
So you can use like this:
const items = [['k1', 'val1'], ['k2', 'val2']]
AsyncStorage.multiSet(items, () => {
//to do something
});
Cheer!
var items = [['k1', 'val1'], ['k2', 'val2']]
AsyncStorage.setItem("KEY", JSON.stringify(items))