react-crud-mobile 1.3.146 → 1.3.147

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.
@@ -14,9 +14,9 @@ var vectorIcons = require('@expo/vector-icons');
14
14
  var Slider = _interopDefault(require('@react-native-community/slider'));
15
15
  var Toast = require('react-native-toast-message');
16
16
  var Toast__default = _interopDefault(Toast);
17
+ var reactNativeGestureHandler = require('react-native-gesture-handler');
17
18
  var DraggableFlatList = require('react-native-draggable-flatlist');
18
19
  var DraggableFlatList__default = _interopDefault(DraggableFlatList);
19
- var reactNativeGestureHandler = require('react-native-gesture-handler');
20
20
  var reactNativeSafeAreaContext = require('react-native-safe-area-context');
21
21
 
22
22
  function _extends() {
@@ -1436,49 +1436,66 @@ function UIModal(_ref) {
1436
1436
  children: children
1437
1437
  });
1438
1438
  };
1439
- return /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
1440
- animationType: "slide",
1441
- transparent: true,
1442
- visible: modalVisible,
1443
- onRequestClose: onClose,
1444
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.SafeAreaView, {
1445
- style: style('modalTop')
1446
- }), /*#__PURE__*/jsxRuntime.jsxs(reactNative.SafeAreaView, {
1447
- style: style('modalSafe'),
1448
- children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
1449
- style: scope.getStyle('header', headerStyle),
1450
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
1451
- onPress: onClose,
1452
- style: style('modalCloseButton'),
1453
- children: /*#__PURE__*/jsxRuntime.jsx(Ionicons, {
1454
- name: "chevron-back-outline",
1455
- size: 24,
1456
- color: color,
1457
- style: style('modalCloseText', defaults)
1439
+ var ModalView = function ModalView(_ref3) {
1440
+ var children = _ref3.children;
1441
+ var original = scope.original;
1442
+ if (original.gesture) {
1443
+ return /*#__PURE__*/jsxRuntime.jsx(reactNativeGestureHandler.GestureHandlerRootView, {
1444
+ style: {
1445
+ flex: 1
1446
+ },
1447
+ children: children
1448
+ });
1449
+ }
1450
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1451
+ children: children
1452
+ });
1453
+ };
1454
+ return /*#__PURE__*/jsxRuntime.jsx(ModalView, {
1455
+ children: /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
1456
+ animationType: "slide",
1457
+ transparent: true,
1458
+ visible: modalVisible,
1459
+ onRequestClose: onClose,
1460
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.SafeAreaView, {
1461
+ style: style('modalTop')
1462
+ }), /*#__PURE__*/jsxRuntime.jsxs(reactNative.SafeAreaView, {
1463
+ style: style('modalSafe'),
1464
+ children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
1465
+ style: scope.getStyle('header', headerStyle),
1466
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
1467
+ onPress: onClose,
1468
+ style: style('modalCloseButton'),
1469
+ children: /*#__PURE__*/jsxRuntime.jsx(Ionicons, {
1470
+ name: "chevron-back-outline",
1471
+ size: 24,
1472
+ color: color,
1473
+ style: style('modalCloseText', defaults)
1474
+ })
1475
+ }), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
1476
+ style: style('modalTitle', defaults),
1477
+ children: label
1478
+ }), !reactCrudUtils.Utils.isEmpty(headerRight) && /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1479
+ scope: scope,
1480
+ crud: curr,
1481
+ "transient": true,
1482
+ children: headerRight
1483
+ })]
1484
+ }), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
1485
+ children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1486
+ style: {
1487
+ flex: 1,
1488
+ paddingLeft: 15,
1489
+ paddingRight: 15,
1490
+ paddingTop: 10,
1491
+ paddingBottom: 10
1492
+ },
1493
+ children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
1458
1494
  })
1459
- }), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
1460
- style: style('modalTitle', defaults),
1461
- children: label
1462
- }), !reactCrudUtils.Utils.isEmpty(headerRight) && /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
1463
- scope: scope,
1464
- crud: curr,
1465
- "transient": true,
1466
- children: headerRight
1467
- })]
1468
- }), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
1469
- children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1470
- style: {
1471
- flex: 1,
1472
- paddingLeft: 15,
1473
- paddingRight: 15,
1474
- paddingTop: 10,
1475
- paddingBottom: 10
1476
- },
1477
- children: /*#__PURE__*/jsxRuntime.jsx(Content, {})
1478
- })
1479
- }), bottom]
1480
- }), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
1481
- }, key);
1495
+ }), bottom]
1496
+ }), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
1497
+ }, key)
1498
+ });
1482
1499
  }
1483
1500
  var styles$8 = /*#__PURE__*/reactNative.StyleSheet.create({
1484
1501
  modalTop: {