mg-library 1.0.572 → 1.0.573

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/blocks.js CHANGED
@@ -573,7 +573,6 @@ export function MGCamera(props) {
573
573
  <View>
574
574
  <View style={{ flexDirection: 'row' }}>
575
575
  <View style={{ flex: 1, alignItems: 'center' }}>
576
-
577
576
  <NBButton
578
577
  style={{ width: 150 }} py={4} colorScheme="primary"
579
578
  leftIcon={
@@ -591,10 +590,8 @@ export function MGCamera(props) {
591
590
  {mgFunctionsLib.i18nString('doInvertCamera', props.language)}
592
591
  </MGText>
593
592
  </NBButton>
594
-
595
593
  </View>
596
594
  <View style={{ flex: 1, alignItems: 'center' }}>
597
-
598
595
  <NBButton
599
596
  style={{ width: 150 }} py={4} colorScheme="primary"
600
597
  leftIcon={
@@ -605,7 +602,6 @@ export function MGCamera(props) {
605
602
  {mgFunctionsLib.i18nString('doTakePhoto', props.language)}
606
603
  </MGText>
607
604
  </NBButton>
608
-
609
605
  </View>
610
606
  </View>
611
607
  </View>
@@ -674,13 +670,26 @@ export function MGCameraPreview(props) {
674
670
  <View>
675
671
  <View style={{ flexDirection: 'row' }}>
676
672
  <View style={{ flex: 1, alignItems: 'center' }}>
677
- <Button
673
+
674
+ {/* <Button
678
675
  style={{ width: 150 }}
679
676
  status='primary'
680
677
  accessoryLeft={SaveIcon}
681
678
  onPress={__savePicture}>
682
679
  <MGText>{mgFunctionsLib.i18nString('doSavePhoto', props.language)}</MGText>
683
- </Button>
680
+ </Button> */}
681
+
682
+ <NBButton
683
+ style={{ width: 150 }} py={4} colorScheme="primary"
684
+ leftIcon={
685
+ <NBIcon as={MaterialCommunityIcons} name="cloud-upload-outline" size="lg" color="white" />
686
+ }
687
+ onPress={__savePicture}>
688
+ <MGText category="p1" color="white">
689
+ {mgFunctionsLib.i18nString('doSavePhoto', props.language)}
690
+ </MGText>
691
+ </NBButton>
692
+
684
693
  </View>
685
694
  </View>
686
695
  </View>
package/functions.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import Toast from 'react-native-root-toast';
2
2
  import { StyleSheet, View, Dimensions } from 'react-native';
3
3
  import AsyncStorage from '@react-native-async-storage/async-storage';
4
- import { Box, Button, Icon } from 'native-base';
4
+ import { Box, Button as NBButton, Icon as NBIcon } from 'native-base';
5
5
  import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
6
6
  import moment from 'moment';
7
7
  import 'moment/locale/es';
@@ -24,12 +24,12 @@ export function navigatorHeader(insets, theme, onPressLogout, company) {
24
24
  <MGText category='h5' style={{ color: 'white' }}>{companyDescription}</MGText>
25
25
  </View>
26
26
  <View style={{ flexGrow: 0.1, flexDirection: 'column' }}>
27
- <Button
27
+ <NBButton
28
28
  style={{ alignSelf: 'center' }}
29
29
  bg="transparent"
30
30
  onPress={onPressLogout}>
31
- <Icon as={MaterialCommunityIcons} name="logout" size="lg" color="white" />
32
- </Button>
31
+ <NBIcon as={MaterialCommunityIcons} name="logout" size="lg" color="white" />
32
+ </NBButton>
33
33
  </View>
34
34
  </View>
35
35
  </Box>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.572",
3
+ "version": "1.0.573",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {