react-crud-mobile 1.3.259 → 1.3.260

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.259",
3
+ "version": "1.3.260",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -26,9 +26,11 @@ interface UIModalType extends ChildType {
26
26
  dialog?: any;
27
27
  }
28
28
 
29
- export default function UIModal({ scope, ...props }: UIModalType) {
29
+ export default function UIModal(props: UIModalType) {
30
+ let owner = props.scope;
30
31
  let [index, setIndex] = useState(0);
31
- let dialog = scope.currentDialog;
32
+ let dialog = owner.currentDialog;
33
+ let scope = dialog.scope;
32
34
  let [modalVisible, setModalVisible] = useState(!Utils.isEmpty(dialog));
33
35
 
34
36
  //v1
@@ -71,7 +73,7 @@ export default function UIModal({ scope, ...props }: UIModalType) {
71
73
 
72
74
  scope.put('scrollRef', scrollRef);
73
75
 
74
- const original = scope.original;
76
+ const original = owner.original;
75
77
 
76
78
  ComponentUtils.setViewScope(scope);
77
79