react-crud-mobile 1.0.533 → 1.0.535

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.
@@ -1061,12 +1061,13 @@ function UIModal(props) {
1061
1061
  toggle(true);
1062
1062
  };
1063
1063
  scope.hide = function (args) {
1064
+ var _main$dialog;
1064
1065
  var old = scope.currentDialog;
1065
1066
  main.dialog = reactCrudUtils.Utils.nvl(old.dialog, null);
1066
1067
  scope.currentDialog = null;
1067
1068
  toggle(false);
1068
- if (main.dialog) {
1069
- main.dialog.update();
1069
+ if ((_main$dialog = main.dialog) != null && _main$dialog.scope) {
1070
+ main.dialog.scope.update();
1070
1071
  }
1071
1072
  };
1072
1073
  React.useEffect(function () {
@@ -1080,6 +1081,7 @@ function UIModal(props) {
1080
1081
  if (curr.uuid !== main.dialog.uuid) {
1081
1082
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
1082
1083
  }
1084
+ var headerRight = reactCrudUtils.ComponentUtils.getDefine(props, 'header', 'right');
1083
1085
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
1084
1086
  animationType: "slide",
1085
1087
  transparent: true,
@@ -1099,6 +1101,10 @@ function UIModal(props) {
1099
1101
  }), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
1100
1102
  style: style('modalTitle'),
1101
1103
  children: label
1104
+ }), !reactCrudUtils.Utils.isEmpty(headerRight) && /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1105
+ scope: scope,
1106
+ crud: scope.currentDialog,
1107
+ children: headerRight
1102
1108
  })]
1103
1109
  }), /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
1104
1110
  contentContainerStyle: {