mg-library 1.0.600 → 1.0.602
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 +8 -9
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
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 { Card } from '@ui-kitten/components';
|
|
5
4
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
6
5
|
import * as ImageManipulator from 'expo-image-manipulator';
|
|
7
6
|
import { Camera, CameraType, CameraView } from 'expo-camera';
|
|
@@ -60,7 +59,7 @@ export function MGWelcome(props) {
|
|
|
60
59
|
<MaterialCommunityIcons style={{ flex: 1 }} name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} />
|
|
61
60
|
}
|
|
62
61
|
<MGText style={{ flex: 1 }} category='h6'>{item.description}</MGText>
|
|
63
|
-
<MGText style={{ flex: 1
|
|
62
|
+
<MGText style={{ flex: 1 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</MGText>
|
|
64
63
|
</View>
|
|
65
64
|
</>
|
|
66
65
|
);
|
|
@@ -455,7 +454,7 @@ export function MGCamera(props) {
|
|
|
455
454
|
);
|
|
456
455
|
return (
|
|
457
456
|
<View>
|
|
458
|
-
<
|
|
457
|
+
<MGCard header={cardHeader} footer={cardFooter}>
|
|
459
458
|
<View style={{ alignItems: 'center' }}>
|
|
460
459
|
<CameraView
|
|
461
460
|
style={{ width: captureWidth, height: captureHeight }}
|
|
@@ -465,7 +464,7 @@ export function MGCamera(props) {
|
|
|
465
464
|
}}>
|
|
466
465
|
</CameraView>
|
|
467
466
|
</View>
|
|
468
|
-
</
|
|
467
|
+
</MGCard>
|
|
469
468
|
</View>
|
|
470
469
|
)
|
|
471
470
|
}
|
|
@@ -533,11 +532,11 @@ export function MGCameraPreview(props) {
|
|
|
533
532
|
);
|
|
534
533
|
return (
|
|
535
534
|
<View>
|
|
536
|
-
<
|
|
535
|
+
<MGCard header={cardHeader} footer={cardFooter}>
|
|
537
536
|
<View style={{ alignItems: 'center' }}>
|
|
538
537
|
<Image source={{ uri: props.process.fileUri }} style={{ width: 200, height: 200 }} />
|
|
539
538
|
</View>
|
|
540
|
-
</
|
|
539
|
+
</MGCard>
|
|
541
540
|
</View>
|
|
542
541
|
)
|
|
543
542
|
}
|
|
@@ -682,8 +681,8 @@ export function MGFlatListHeader(props) {
|
|
|
682
681
|
|
|
683
682
|
export function MGSessionHeader(props) {
|
|
684
683
|
return (
|
|
685
|
-
|
|
686
|
-
<View
|
|
684
|
+
<View style={{ marginBottom: 10 }}>
|
|
685
|
+
<View>
|
|
687
686
|
<View style={{ display: 'flex', flexDirection: 'row', alignItems: 'stretch' }}>
|
|
688
687
|
<View style={{ flexGrow: 0.5, alignSelf: 'center' }}>
|
|
689
688
|
<MGText category='h5' style={{ color: props.theme['color-primary-500'], marginLeft: 5 }}>{props.module}</MGText>
|
|
@@ -699,7 +698,7 @@ export function MGSessionHeader(props) {
|
|
|
699
698
|
</View>
|
|
700
699
|
<MGDivider />
|
|
701
700
|
</View>
|
|
702
|
-
|
|
701
|
+
</View>
|
|
703
702
|
);
|
|
704
703
|
}
|
|
705
704
|
|