From 4a832f8bc78e9d0c7d83edd2e7777919a5e685ad Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 Date: Thu, 22 Apr 2021 19:03:46 -0700 Subject: On Press Tutorial --- src/utils/common.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/utils') diff --git a/src/utils/common.ts b/src/utils/common.ts index cec0e1b5..868d7b8e 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -138,6 +138,17 @@ export const extractContacts = async () => { return retrievedContacts; }; +export const hasSeenBadgeTutorial = async () => { + if ((await AsyncStorage.getItem('hasSeenBadgeTutorial')) === 'true') { + return true; + } + return false; +}; + +export const setHasSeenBadgeTutorial = async () => { + await AsyncStorage.setItem('hasSeenBadgeTutorial', 'true'); +}; + export const getUniversityBadge = ( university: UniversityType, type: UniversityBadgeType, -- cgit v1.2.3-70-g09d2