react-crud-mobile 1.3.211 → 1.3.214
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/dist/react-crud-mobile.cjs.development.js +14 -20
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +14 -20
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UIElement.tsx +3 -10
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-crud-mobile",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.214",
|
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.
|
49
|
+
"react-crud-utils": "^0.1.406",
|
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 = ScopeUtils.create({ crud, ...props, theme })
|
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
|
-
|
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
|
-
//
|
727
|
+
//v4
|
735
728
|
const elementStyle: any = {};
|
736
729
|
|
737
730
|
elementStyle.view = {
|