mg-library 1.0.549 → 1.0.551

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
@@ -18,24 +18,6 @@ const logoutIcon = () => (
18
18
  <MaterialCommunityIcons name='logout' color='white' size={20} style={{ flex: 1 }} />
19
19
  );
20
20
 
21
- /* export function navigatorHeader(insets, theme, onPressLogout, company) {
22
- let companyDescription = company.description;
23
- if (companyDescription.length > 25)
24
- companyDescription = companyDescription.substring(0, 25) + '...';
25
- return (
26
- <Layout style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
27
- <View style={{ flexDirection: 'row', flexGrow: 1 }}>
28
- <View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
29
- <Text category='h5' style={{ color: 'white' }}>{companyDescription}</Text>
30
- </View>
31
- <View style={{ flexGrow: 0.1, flexDirection: 'column' }}>
32
- <Button style={{ alignSelf: 'center' }} accessoryLeft={logoutIcon} onPress={() => { onPressLogout() }} />
33
- </View>
34
- </View>
35
- </Layout>
36
- );
37
- } */
38
-
39
21
  export function navigatorHeader(insets, theme, onPressLogout, company) {
40
22
  let companyDescription = company.description;
41
23
  if (companyDescription.length > 25)
@@ -44,7 +26,7 @@ export function navigatorHeader(insets, theme, onPressLogout, company) {
44
26
  <Box style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
45
27
  <View style={{ flexDirection: 'row', flexGrow: 1 }}>
46
28
  <View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
47
- <Text category='h5' style={{ color: 'white' }}>{companyDescription}</Text>
29
+ <MGText category='h5' style={{ color: 'white' }}>{companyDescription}</MGText>
48
30
  </View>
49
31
  <View style={{ flexGrow: 0.1, flexDirection: 'column' }}>
50
32
  <Button style={{ alignSelf: 'center' }} accessoryLeft={logoutIcon} onPress={() => { onPressLogout() }} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.549",
3
+ "version": "1.0.551",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {