Skip to content

Instantly share code, notes, and snippets.

@aloukissas
Created January 22, 2019 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aloukissas/71a0da1400316f21d6ed925bb8940471 to your computer and use it in GitHub Desktop.
Save aloukissas/71a0da1400316f21d6ed925bb8940471 to your computer and use it in GitHub Desktop.
deleteUserCity = async () => {
try {
await AsyncStorage.removeItem("userCity");
} catch (error) {
console.log(`While removing userCity: ${error.message}`);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment