mg-library 1.0.548 → 1.0.550

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 CHANGED
@@ -1,12 +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, Button, Popover, Card, Layout, Input } from '@ui-kitten/components';
4
+ import { Text, Button, Popover, Card, 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
+ import { Divider, Box } from 'native-base';
10
10
  import { uploadFile } from '@uploadcare/upload-client';
11
11
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
12
12
 
@@ -208,7 +208,7 @@ export function MGLogin(props) {
208
208
 
209
209
  return (
210
210
  <View style={{ flex: 1 }}>
211
- <Layout style={[mgFunctionsLib.safeAreaViewStyleSheet(insets).safeAreaView, { display: 'flex', flexDirection: 'column', flexGrow: 1 }]}>
211
+ <Box style={[mgFunctionsLib.safeAreaViewStyleSheet(insets).safeAreaView, { display: 'flex', flexDirection: 'column', flexGrow: 1 }]}>
212
212
  <View style={{ flexDirection: 'column', flexGrow: 1, justifyContent: 'center' }}>
213
213
  {isKeyboardVisible &&
214
214
  <View style={{ flexDirection: 'column', alignItems: 'center', marginBottom: 10 }}>
@@ -284,7 +284,7 @@ export function MGLogin(props) {
284
284
  </Card>
285
285
  </View>
286
286
  </View>
287
- </Layout>
287
+ </Box>
288
288
  </View>
289
289
  );
290
290
 
package/functions.js CHANGED
@@ -1,7 +1,8 @@
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 { Text, Button, Layout } from '@ui-kitten/components';
4
+ import { Text, Button } from '@ui-kitten/components';
5
+ import { Box } from 'native-base';
5
6
  import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
6
7
  import moment from 'moment';
7
8
  import 'moment/locale/es';
@@ -22,7 +23,7 @@ export function navigatorHeader(insets, theme, onPressLogout, company) {
22
23
  if (companyDescription.length > 25)
23
24
  companyDescription = companyDescription.substring(0, 25) + '...';
24
25
  return (
25
- <Layout style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
26
+ <Box style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
26
27
  <View style={{ flexDirection: 'row', flexGrow: 1 }}>
27
28
  <View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
28
29
  <Text category='h5' style={{ color: 'white' }}>{companyDescription}</Text>
@@ -31,7 +32,7 @@ export function navigatorHeader(insets, theme, onPressLogout, company) {
31
32
  <Button style={{ alignSelf: 'center' }} accessoryLeft={logoutIcon} onPress={() => { onPressLogout() }} />
32
33
  </View>
33
34
  </View>
34
- </Layout>
35
+ </Box>
35
36
  );
36
37
  }
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.548",
3
+ "version": "1.0.550",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {