mg-library 1.0.571 → 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.
Files changed (3) hide show
  1. package/blocks.js +28 -21
  2. package/functions.js +4 -4
  3. package/package.json +1 -1
package/blocks.js CHANGED
@@ -573,18 +573,10 @@ 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
- style={{ width: 150 }}
579
- py={4}
580
- colorScheme="primary"
577
+ style={{ width: 150 }} py={4} colorScheme="primary"
581
578
  leftIcon={
582
- <NBIcon
583
- as={MaterialCommunityIcons}
584
- name="camera-flip-outline"
585
- size="lg"
586
- color="white"
587
- />
579
+ <NBIcon as={MaterialCommunityIcons} name="camera-flip-outline" size="lg" color="white" />
588
580
  }
589
581
  onPress={() => {
590
582
  setFacing(
@@ -598,16 +590,18 @@ export function MGCamera(props) {
598
590
  {mgFunctionsLib.i18nString('doInvertCamera', props.language)}
599
591
  </MGText>
600
592
  </NBButton>
601
-
602
593
  </View>
603
594
  <View style={{ flex: 1, alignItems: 'center' }}>
604
- <Button
605
- style={{ width: 150 }}
606
- status='primary'
607
- accessoryLeft={TakeIcon}
608
- onPress={__takePicture}>
609
- <MGText>{mgFunctionsLib.i18nString('doTakePhoto', props.language)}</MGText>
610
- </Button>
595
+ <NBButton
596
+ style={{ width: 150 }} py={4} colorScheme="primary"
597
+ leftIcon={
598
+ <NBIcon as={MaterialCommunityIcons} name="camera-outline" size="lg" color="white" />
599
+ }
600
+ onPress={__takePicture}>
601
+ <MGText category="p1" color="white">
602
+ {mgFunctionsLib.i18nString('doTakePhoto', props.language)}
603
+ </MGText>
604
+ </NBButton>
611
605
  </View>
612
606
  </View>
613
607
  </View>
@@ -676,13 +670,26 @@ export function MGCameraPreview(props) {
676
670
  <View>
677
671
  <View style={{ flexDirection: 'row' }}>
678
672
  <View style={{ flex: 1, alignItems: 'center' }}>
679
- <Button
673
+
674
+ {/* <Button
680
675
  style={{ width: 150 }}
681
676
  status='primary'
682
677
  accessoryLeft={SaveIcon}
683
678
  onPress={__savePicture}>
684
679
  <MGText>{mgFunctionsLib.i18nString('doSavePhoto', props.language)}</MGText>
685
- </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
+
686
693
  </View>
687
694
  </View>
688
695
  </View>
@@ -773,7 +780,7 @@ export function MGGoBack(props) {
773
780
  <NBIcon
774
781
  as={MaterialCommunityIcons}
775
782
  name='keyboard-backspace'
776
- size='xl'
783
+ size='2xl'
777
784
  color={props.theme['color-primary-500']}
778
785
  />
779
786
  </NBButton>
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.571",
3
+ "version": "1.0.573",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {