mg-library 1.0.486 → 1.0.488

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/constants.js CHANGED
@@ -14,6 +14,9 @@ export const ACCESS_TOKEN = 'accessToken';
14
14
  export const CAMERA_FACING_BACK = 'back';
15
15
  export const CAMERA_FACING_FRONT = 'front';
16
16
 
17
+ export const PLATFORM_ANDROID = 'android';
18
+ export const PLATFORM_IOS = 'ios';
19
+
17
20
  // Date & Time
18
21
 
19
22
  export const TIME_FORMAT = 'HH:mm';
package/functions.js CHANGED
@@ -62,12 +62,15 @@ export function getRequestHeader() {
62
62
 
63
63
  // Cards
64
64
 
65
- export function getCardHeader(text) {
65
+ export function getCardHeader(title, subTitle) {
66
66
  return (
67
67
  <>
68
68
  <View style={{ flexDirection: 'row', marginTop: 10, marginBottom: 10, marginLeft: 10 }}>
69
69
  <View style={{ flexGrow: 0.95 }}>
70
- <Text category='h6'>{text}</Text>
70
+ <Text category='h6'>{title}</Text>
71
+ {subTitle != undefined &&
72
+ <Text category='p1' style={{fontStyle: 'italic'}}>{subTitle}</Text>
73
+ }
71
74
  </View>
72
75
  </View>
73
76
  </>
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.486",
3
+ "version": "1.0.488",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {