react-crud-mobile 1.3.210 → 1.3.213

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.210",
3
+ "version": "1.3.213",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -57,7 +57,7 @@ export default function UIElement(props: ElementType) {
57
57
  const theme = Utils.nvl(props.theme, ctx?.theme);
58
58
 
59
59
  let crud: Crud = Utils.nvl(props.crud, ctx?.crud);
60
- let scope = ScopeUtils.create({ crud, ...props, theme }) as Scope;
60
+ let [scope] = useState<Scope>(ScopeUtils.create({ crud, ...props, theme }));
61
61
  let [index, setIndex] = useState(0);
62
62
  let [error, setError]: string | any = useState(null);
63
63
 
@@ -500,12 +500,6 @@ export default function UIElement(props: ElementType) {
500
500
  };
501
501
 
502
502
  let Container = () => {
503
- let [indxContainer, setIndxContainer] = useState(0);
504
-
505
- scope.updaters.container = () => {
506
- setIndxContainer(++indxContainer);
507
- };
508
-
509
503
  return (
510
504
  <>
511
505
  {isShowLabel() && (
@@ -677,8 +671,7 @@ export default function UIElement(props: ElementType) {
677
671
  dialogScope.currentDialog = dialog;
678
672
  dialogScope.toggleDialog(true);
679
673
 
680
- setIndex(++index);
681
- //scope.updaters.container?.();
674
+ scope.update();
682
675
  };
683
676
 
684
677
  scope.dialogHide = (args?: MethodType) => {
@@ -731,7 +724,7 @@ let boxStyle = StyleSheet.create({
731
724
  const box: any = {
732
725
  ...boxStyle.box,
733
726
  };
734
- //v6
727
+ //v4
735
728
  const elementStyle: any = {};
736
729
 
737
730
  elementStyle.view = {