react-crud-mobile 1.3.74 → 1.3.76

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.74",
2
+ "version": "1.3.76",
3
3
  "license": "MIT",
4
4
  "description": "Uma biblioteca de componentes para React Native",
5
5
  "main": "dist/index.js",
@@ -1,4 +1,4 @@
1
- import { useEffect, useRef, useState } from 'react';
1
+ import { useRef, useState } from 'react';
2
2
  import { ChildType, MethodType, Utils, ViewUtils } from 'react-crud-utils';
3
3
  import {
4
4
  Text,
@@ -6,13 +6,11 @@ import {
6
6
  StyleSheet,
7
7
  Modal,
8
8
  View,
9
- StatusBar,
10
9
  SafeAreaView,
11
10
  ScrollView,
12
11
  } from 'react-native';
13
12
  import { Ionicons } from '@expo/vector-icons';
14
13
  import UI from '../UI';
15
- import MobileUtils from '../../utils/MobileUtils';
16
14
 
17
15
  export default function UISelect(props: ChildType) {
18
16
  const [modalVisible, setModalVisible] = useState(false);
@@ -56,10 +54,6 @@ export default function UISelect(props: ChildType) {
56
54
  };
57
55
  //v4
58
56
 
59
- useEffect(() => {
60
- MobileUtils.syncTheme();
61
- }, [modalVisible]);
62
-
63
57
  return (
64
58
  <View
65
59
  key={scope.getName(`${scope.getPart('modal')}_${modalVisible}`)}
@@ -1,26 +1,15 @@
1
1
  import { ScrollView, StyleSheet, Text, View } from 'react-native';
2
2
 
3
3
  import UIChildren from '../UIChildren';
4
- import {
5
- ChildType,
6
- ComponentUtils,
7
- HtmlUtils,
8
- Utils,
9
- ViewUtils,
10
- } from 'react-crud-utils';
11
- import { useEffect, useRef } from 'react';
4
+ import { ChildType, ComponentUtils, Utils, ViewUtils } from 'react-crud-utils';
5
+ import { useRef } from 'react';
12
6
  import UIToast from './UIToast';
13
- import MobileUtils from '../../utils/MobileUtils';
14
7
  import UIHeader from './UIHeader';
15
8
 
16
9
  export default function UIView({ scope, children }: ChildType) {
17
10
  const scrollRef = useRef(null);
18
11
  const original = scope.original;
19
12
 
20
- useEffect(() => {
21
- MobileUtils.syncTheme();
22
- }, []);
23
-
24
13
  const onScroll = () => {
25
14
  const crud = ViewUtils.getCrud();
26
15
 
@@ -31,6 +20,7 @@ export default function UIView({ scope, children }: ChildType) {
31
20
  });
32
21
  };
33
22
 
23
+ //v3
34
24
  scope.put('scrollRef', scrollRef);
35
25
 
36
26
  ComponentUtils.setViewScope(scope);