react-native-app-update-helper
Version:
This packages provides a customizable update overlay.
25 lines (24 loc) • 604 B
JavaScript
;
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