mg-library 1.0.541 → 1.0.543

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 +4 -3
  2. package/package.json +1 -1
package/functions.js CHANGED
@@ -8,6 +8,7 @@ import 'moment/locale/es';
8
8
  import 'moment/locale/en-gb';
9
9
  import { Camera } from 'expo-camera';
10
10
 
11
+ import MGText from './components.js';
11
12
  import * as mgConstants from './constants.js';
12
13
 
13
14
  // Navigator
@@ -24,7 +25,7 @@ export function navigatorHeader(insets, theme, onPressLogout, company) {
24
25
  <Layout style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
25
26
  <View style={{ flexDirection: 'row', flexGrow: 1 }}>
26
27
  <View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
27
- <Text category='h5' style={{ color: 'white' }}>{companyDescription}</Text>
28
+ <MGText category='h5' style={{ color: 'white' }}>{companyDescription}</MGText>
28
29
  </View>
29
30
  <View style={{ flexGrow: 0.1, flexDirection: 'column' }}>
30
31
  <Button style={{ alignSelf: 'center' }} accessoryLeft={logoutIcon} onPress={() => { onPressLogout() }} />
@@ -67,9 +68,9 @@ export function getCardHeader(title, subTitle) {
67
68
  <>
68
69
  <View style={{ flexDirection: 'row', marginTop: 10, marginBottom: 10, marginLeft: 10 }}>
69
70
  <View style={{ flexGrow: 0.95 }}>
70
- <Text category='h6'>{title}</Text>
71
+ <MGText category='h6'>{title}</MGText>
71
72
  {subTitle != undefined &&
72
- <Text category='p1' style={{ fontStyle: 'italic' }}>{subTitle}</Text>
73
+ <MGText category='p1' style={{ fontStyle: 'italic' }}>{subTitle}</MGText>
73
74
  }
74
75
  </View>
75
76
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.541",
3
+ "version": "1.0.543",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {