mg-library 1.0.276 → 1.0.277

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import Toast from 'react-native-root-toast';
2
- import { StyleSheet } from 'react-native';
2
+ import { StyleSheet, AsyncStorage } from 'react-native';
3
3
  import moment from 'moment';
4
4
  import 'moment/locale/es';
5
5
  import 'moment/locale/en-gb';
@@ -167,4 +167,14 @@ export function getDateForExposition(date, language) {
167
167
 
168
168
  export function getTimeForExposition(date) {
169
169
  return moment(date).format('HH:mm');
170
+ }
171
+
172
+ // Local Storage
173
+
174
+ export async function writeToLocalStorage(key, value) {
175
+ await AsyncStorage.setItem(key, value);
176
+ }
177
+
178
+ export async function readFromLocalStorage(key) {
179
+ return await AsyncStorage.getItem(key);
170
180
  }
package/mg-library.rar CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.276",
3
+ "version": "1.0.277",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {