mg-library 1.0.279 → 1.0.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions.js +7 -3
- package/package.json +1 -1
package/functions.js
CHANGED
|
@@ -175,13 +175,17 @@ export function getTimeForExposition(date) {
|
|
|
175
175
|
export async function writeToLocalStorage(key, value) {
|
|
176
176
|
try {
|
|
177
177
|
await AsyncStorage.setItem(key,value);
|
|
178
|
-
} catch (
|
|
178
|
+
} catch (error) {
|
|
179
|
+
console.log('WRITING');
|
|
180
|
+
console.log(error);
|
|
179
181
|
}
|
|
180
182
|
}
|
|
181
183
|
|
|
182
184
|
export async function readFromLocalStorage(key) {ç
|
|
183
185
|
try {
|
|
184
186
|
return await AsyncStorage.getItem(key);
|
|
185
|
-
} catch (
|
|
187
|
+
} catch (error) {
|
|
188
|
+
console.log('READING');
|
|
189
|
+
console.log(error);
|
|
186
190
|
}
|
|
187
|
-
}
|
|
191
|
+
}
|