Skip to content

Instantly share code, notes, and snippets.

@ilkay-alti
Last active September 30, 2022 20:19
Show Gist options
  • Save ilkay-alti/42d4dc396c06e76bf98067d10a592580 to your computer and use it in GitHub Desktop.
Save ilkay-alti/42d4dc396c06e76bf98067d10a592580 to your computer and use it in GitHub Desktop.
const places = {
name: "İlkay",
country: "Turkey"
};
const food = {
name: "Spaghetti Pasta"
};
const firstData = ["places", JSON.stringify(places)];
const secondData = ["food", JSON.stringify(food)];
const storeMultipleData = async () => {
try {
await AsyncStorage.multiSet([firstData, secondData]);
} catch (error) {
console.log(error);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment