react-crud-mobile 1.3.265 → 1.3.267

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,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.265",
3
+ "version": "1.3.267",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@react-native-vector-icons/material-icons": "^0.0.1",
47
47
  "expo-status-bar": "~3.0.8",
48
48
  "react": "19.1.0",
49
- "react-crud-utils": "^0.1.423",
49
+ "react-crud-utils": "^0.1.425",
50
50
  "react-dom": "19.1.0",
51
51
  "react-native": "0.81.4",
52
52
  "react-native-draggable-flatlist": "^4.0.3",
@@ -30,7 +30,6 @@ export default function UIModal(props: UIModalType) {
30
30
  let owner = props.scope;
31
31
  let [index, setIndex] = useState(0);
32
32
  let dialog = owner.currentDialog;
33
- let [modalVisible, setModalVisible] = useState(!Utils.isEmpty(dialog));
34
33
 
35
34
  //v2
36
35
 
@@ -47,10 +46,7 @@ export default function UIModal(props: UIModalType) {
47
46
 
48
47
  if (dialog.debug) console.log(dialog);
49
48
 
50
- if (curr.uuid !== main.dialog?.crud?.uuid) {
51
- return <></>;
52
- }
53
-
49
+ const modalVisible = curr.uuid === main.dialog?.crud?.uuid;
54
50
  const scope = dialog.scope;
55
51
  const label = scope.getLabel();
56
52
  const theme = scope.getTheme();
@@ -69,11 +65,6 @@ export default function UIModal(props: UIModalType) {
69
65
  scope.close({ scope, crud: dialog?.crud, event: {} });
70
66
  };
71
67
 
72
- scope.toggleDialog = vis => {
73
- modalVisible = vis;
74
- setModalVisible(modalVisible);
75
- };
76
-
77
68
  scope.put('scrollRef', scrollRef);
78
69
 
79
70
  const original = owner.original;