mg-library 1.0.546 → 1.0.548
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 +10 -9
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import { useCallback, useState, useEffect } from 'react';
|
2
2
|
import { useForm, Controller } from 'react-hook-form';
|
3
3
|
import { View, ActivityIndicator, Pressable, Image, FlatList, Keyboard, Dimensions } from 'react-native';
|
4
|
-
import { Text,
|
4
|
+
import { Text, Button, Popover, Card, Layout, Input } from '@ui-kitten/components';
|
5
5
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
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 } from 'native-base';
|
9
10
|
import { uploadFile } from '@uploadcare/upload-client';
|
10
11
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
11
12
|
|
@@ -23,11 +24,11 @@ export function MGWelcome(props) {
|
|
23
24
|
<Image source={{ uri: props.company.logoUrl }} style={{ width: 100, height: 100 }} />
|
24
25
|
</View>
|
25
26
|
<View style={{ flex: 1, flexDirection: 'column', alignSelf: 'center' }}>
|
26
|
-
<
|
27
|
-
<
|
28
|
-
<
|
29
|
-
<
|
30
|
-
<
|
27
|
+
<Text style={{ textAlign: 'center' }} category='h6'>{props.company.legalName}</Text>
|
28
|
+
<Text style={{ textAlign: 'center' }} category='c1'>{props.company.address}</Text>
|
29
|
+
<Text style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</Text>
|
30
|
+
<Text style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</Text>
|
31
|
+
<Text style={{ textAlign: 'center' }} category='c1'>{props.company.email}</Text>
|
31
32
|
</View>
|
32
33
|
</View>
|
33
34
|
)
|
@@ -58,8 +59,8 @@ export function MGWelcome(props) {
|
|
58
59
|
{item.isImportant &&
|
59
60
|
<MaterialCommunityIcons style={{ flex: 1 }} name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} />
|
60
61
|
}
|
61
|
-
<
|
62
|
-
<
|
62
|
+
<Text style={{ flex: 1 }} category='h6'>{item.description}</Text>
|
63
|
+
<Text style={{ flex: 1, marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</Text>
|
63
64
|
</View>
|
64
65
|
</>
|
65
66
|
);
|
@@ -87,7 +88,7 @@ export function MGWelcome(props) {
|
|
87
88
|
<Image source={{ uri: item.imageUrl }} style={{ width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }} />
|
88
89
|
</View>
|
89
90
|
}
|
90
|
-
<
|
91
|
+
<Text style={{ marginBottom: 10 }}>{item.content}</Text>
|
91
92
|
</Card>
|
92
93
|
)}
|
93
94
|
ListHeaderComponent={listHeaderComponent}
|