mg-library 1.0.299 → 1.0.300

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.
Files changed (2) hide show
  1. package/functions.js +16 -2
  2. package/package.json +1 -1
package/functions.js CHANGED
@@ -1,13 +1,27 @@
1
1
  import Toast from 'react-native-root-toast';
2
- import { StyleSheet } from 'react-native';
2
+ import { StyleSheet, View } from 'react-native';
3
3
  import AsyncStorage from '@react-native-async-storage/async-storage';
4
-
4
+ import { Text } from '@ui-kitten/components';
5
5
  import moment from 'moment';
6
6
  import 'moment/locale/es';
7
7
  import 'moment/locale/en-gb';
8
8
 
9
9
  import * as mgConstants from './constants.js';
10
10
 
11
+ // Cards
12
+
13
+ export function getCardHeader(text) {
14
+ return (
15
+ <>
16
+ <View style={{ flexDirection: 'row', marginTop: 10, marginBottom: 10, marginLeft: 10 }}>
17
+ <View style={{ flexGrow: 0.95 }}>
18
+ <Text category='h6'>{text}</Text>
19
+ </View>
20
+ </View>
21
+ </>
22
+ );
23
+ };
24
+
11
25
  // Local Storage
12
26
 
13
27
  export const writeToLocalStorage = async (key, value) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.299",
3
+ "version": "1.0.300",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {