UNPKG

react-native-app-update-helper

Version:
25 lines (24 loc) 604 B
"use strict"; import AsyncStorage from '@react-native-async-storage/async-storage'; const getStoredValue = async ({ storageTag }) => { try { const storedValue = await AsyncStorage.getItem(`${storageTag}`); return storedValue; } catch (e) { console.log(e, 'Error storing current version'); } }; const storeValue = async ({ storageTag, valueToStore = '' }) => { try { await AsyncStorage.setItem(`${storageTag}`, valueToStore); } catch (e) { console.log(e, 'Error storing current version'); } }; export { getStoredValue, storeValue }; //# sourceMappingURL=store.js.map