Last active
September 30, 2022 20:19
-
-
Save ilkay-alti/42d4dc396c06e76bf98067d10a592580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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