react-crud-mobile 1.3.203 → 1.3.208

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.203",
3
+ "version": "1.3.208",
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.403",
49
+ "react-crud-utils": "^0.1.404",
50
50
  "react-dom": "19.1.0",
51
51
  "react-native": "0.81.4",
52
52
  "react-native-draggable-flatlist": "^4.0.3",
@@ -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] = useState(ScopeUtils.create({ crud, ...props, theme }));
60
+ let scope = ScopeUtils.create({ crud, ...props, theme }) as Scope;
61
61
  let [index, setIndex] = useState(0);
62
62
  let [error, setError]: string | any = useState(null);
63
63
 
@@ -500,6 +500,12 @@ 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
+
503
509
  return (
504
510
  <>
505
511
  {isShowLabel() && (
@@ -672,6 +678,7 @@ export default function UIElement(props: ElementType) {
672
678
  dialogScope.toggleDialog(true);
673
679
 
674
680
  scope.update();
681
+ scope.updaters.container?.();
675
682
  };
676
683
 
677
684
  scope.dialogHide = (args?: MethodType) => {
@@ -724,7 +731,7 @@ let boxStyle = StyleSheet.create({
724
731
  const box: any = {
725
732
  ...boxStyle.box,
726
733
  };
727
- //v4
734
+ //v5
728
735
  const elementStyle: any = {};
729
736
 
730
737
  elementStyle.view = {