react-crud-mobile 1.3.281 → 1.3.283

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.
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useRef, useEffect, useContext, useLayoutEffect, createContext } from 'react';
2
- import { Utils, ScopeUtils, CrudUtils, ComponentUtils, ViewUtils, HtmlUtils, ThemeUtils, useTheme } from 'react-crud-utils';
2
+ import { Utils, ScopeUtils, CrudUtils, ComponentUtils, HtmlUtils, ViewUtils, ThemeUtils, useTheme } from 'react-crud-utils';
3
3
  import { View, StyleSheet, TouchableOpacity, Text, Linking, TouchableHighlight, Modal, SafeAreaView, ScrollView, Switch, TextInput, Platform, Dimensions, Alert, Image, StatusBar, KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard } from 'react-native';
4
4
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
5
5
  import Ionicons from '@expo/vector-icons/Ionicons';
@@ -1366,6 +1366,7 @@ function UIToast() {
1366
1366
 
1367
1367
  function UIModal(props) {
1368
1368
  var _theme$styles;
1369
+ var scrollRef = useRef(null);
1369
1370
  var owner = props.scope;
1370
1371
  var _useState = useState(0),
1371
1372
  index = _useState[0],
@@ -1373,7 +1374,6 @@ function UIModal(props) {
1373
1374
  var dialog = owner.currentDialog;
1374
1375
  //v2
1375
1376
  var curr = dialog == null ? void 0 : dialog.crud;
1376
- var main = ViewUtils.getCrud('view');
1377
1377
  if (!dialog) {
1378
1378
  return /*#__PURE__*/jsx(Fragment, {});
1379
1379
  }
@@ -1386,7 +1386,6 @@ function UIModal(props) {
1386
1386
  var label = scope.getLabel();
1387
1387
  var theme = scope.getTheme();
1388
1388
  var headerStyle = Utils.nvl((_theme$styles = theme.styles) == null || (_theme$styles = _theme$styles.defaults) == null ? void 0 : _theme$styles.header, {});
1389
- var scrollRef = useRef(null);
1390
1389
  var headerRight = ComponentUtils.getDefine(props, 'header', 'right');
1391
1390
  var bottom = ComponentUtils.getDefine(props, 'bottom');
1392
1391
  var style = function style(part, extra) {
@@ -2291,7 +2290,7 @@ function UIElement(props) {
2291
2290
  var _next$scope, _current$scope;
2292
2291
  var main = ViewUtils.getCrud('view');
2293
2292
  var current = main.dialog;
2294
- var next = Utils.nvl(main.parent, null);
2293
+ var next = Utils.nvl(current.parent, null);
2295
2294
  main.dialog = next;
2296
2295
  scope.currentDialog = next;
2297
2296
  var nextScope = next == null || (_next$scope = next.scope) == null ? void 0 : _next$scope.parent;