mg-library 1.0.564 → 1.0.566

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/blocks.js +21 -3
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -6,7 +6,7 @@ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityI
6
6
  import * as ImageManipulator from 'expo-image-manipulator';
7
7
  import { Camera, CameraType, CameraView } from 'expo-camera';
8
8
  import axios from 'axios';
9
- import { Divider, Box } from 'native-base';
9
+ import { Divider, Box, Button as NBButton, Icon as NBIcon } from 'native-base';
10
10
  import { uploadFile } from '@uploadcare/upload-client';
11
11
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
12
12
 
@@ -88,7 +88,7 @@ export function MGWelcome(props) {
88
88
  <Image source={{ uri: item.imageUrl }} style={{ width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }} />
89
89
  </View>
90
90
  }
91
- <MGText style={{ marginBottom: 10 }}>{item.content}</MGText>
91
+ <MGText style={{ marginBottom: 10 }}>{item.content}</MGText>
92
92
  </Card>
93
93
  )}
94
94
  ListHeaderComponent={listHeaderComponent}
@@ -584,7 +584,7 @@ export function MGPopover(props) {
584
584
  )
585
585
  }
586
586
 
587
- export function MGGoBack(props) {
587
+ /* export function MGGoBack(props) {
588
588
  const goBackIcon = () => (
589
589
  <MaterialCommunityIcons
590
590
  name='keyboard-backspace'
@@ -599,6 +599,24 @@ export function MGGoBack(props) {
599
599
  accessoryLeft={goBackIcon} />
600
600
  </View>
601
601
  )
602
+ } */
603
+
604
+ export function MGGoBack(props) {
605
+ return (
606
+ <View style={{ alignItems: 'flex-start', marginTop: -20 }}>
607
+ <NBButton
608
+ appearance='ghost'
609
+ bg="transparent"
610
+ onPress={() => props.process.goBack()}>
611
+ <NBIcon
612
+ as={MaterialCommunityIcons}
613
+ name='keyboard-backspace'
614
+ size='lg'
615
+ color={props.theme['color-primary-500']}
616
+ />
617
+ </NBButton>
618
+ </View>
619
+ )
602
620
  }
603
621
 
604
622
  export function MGPressable({ children, style, activeOpacity, ...otherProps }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.564",
3
+ "version": "1.0.566",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {