react-crud-mobile 1.3.278 → 1.3.280

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.278",
3
+ "version": "1.3.280",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -711,13 +711,10 @@ export default function UIElement(props: ElementType) {
711
711
  main.dialog = next;
712
712
  scope.currentDialog = next;
713
713
 
714
- let nextScope = next?.scope?.parent;
715
- let currScope = current?.scope?.parent;
716
-
717
- if (currScope) {
714
+ if (current) {
718
715
  const close = current.close;
719
716
 
720
- currScope.update();
717
+ if (current.update) current.update();
721
718
 
722
719
  if (close) {
723
720
  if (close?.debug) console.log('Fechando');
@@ -725,8 +722,8 @@ export default function UIElement(props: ElementType) {
725
722
  }
726
723
  }
727
724
 
728
- if (nextScope) {
729
- nextScope.update();
725
+ if (next?.update) {
726
+ next.update();
730
727
  }
731
728
  };
732
729
 
@@ -758,7 +755,7 @@ let boxStyle = StyleSheet.create({
758
755
  const box: any = {
759
756
  ...boxStyle.box,
760
757
  };
761
- //v4
758
+ //v5
762
759
  const elementStyle: any = {};
763
760
 
764
761
  elementStyle.view = {