mg-library 1.0.406 → 1.0.408

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 +10 -9
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useState, useEffect } from 'react';
2
2
  import { useForm, Controller } from 'react-hook-form';
3
- import { View, ActivityIndicator, Pressable, Image, FlatList, Keyboard, Dimensions } from 'react-native';
3
+ import { View, ActivityIndicator, Pressable, Image, FlatList, Keyboard } from 'react-native';
4
4
  import { Text, Divider, 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';
@@ -32,6 +32,11 @@ export function MGWelcome(props) {
32
32
 
33
33
  let listHeaderComponent = (
34
34
  <View>
35
+ {props.beforeNotices != undefined &&
36
+ <>
37
+ {props.beforeNotices}
38
+ </>
39
+ }
35
40
  <MGSessionHeader module={mgFunctionsLib.i18nString('notices', props.language)} person={props.person} theme={props.theme} />
36
41
  {companyInfoComponent}
37
42
  <MGDivider />
@@ -144,8 +149,8 @@ export function MGLogin(props) {
144
149
  style={{ width: 300, height: 150 }} />
145
150
  {!isKeyboardVisible &&
146
151
  <View style={{ flexDirection: 'column', alignItems: 'center' }}>
147
- <Text style={{alignSelf: 'center'}} category='h6'>{props.appDescription}</Text>
148
- <Text style={{alignSelf: 'center'}} category='p2'>{props.appVersion}</Text>
152
+ <Text style={{ alignSelf: 'center' }} category='h6'>{props.appDescription}</Text>
153
+ <Text style={{ alignSelf: 'center' }} category='p2'>{props.appVersion}</Text>
149
154
  </View>
150
155
  }
151
156
  </View>
@@ -247,12 +252,8 @@ export function MGCurrentAccount(props) {
247
252
 
248
253
  export function MGCamera(props) {
249
254
  let camera;
250
-
251
- //205
252
- //275
253
- let captureWidth = Dimensions.get('window').width * 0.60;
254
- let captureHeight = Dimensions.get('window').height * 0.60;
255
-
255
+ let captureWidth = 205;
256
+ let captureHeight = 275;
256
257
  const __takePicture = async () => {
257
258
  if (!camera)
258
259
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.406",
3
+ "version": "1.0.408",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {