react-crud-mobile 1.0.621 → 1.0.622

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.
@@ -692,12 +692,6 @@ function UIListRow(props) {
692
692
  data: item
693
693
  }))),
694
694
  row = _useState[0];
695
- var _useState2 = React.useState(0),
696
- updateIndex = _useState2[0],
697
- setUpdateIndex = _useState2[1];
698
- row.update = function () {
699
- setUpdateIndex(++updateIndex);
700
- };
701
695
  var getRowStyle = function getRowStyle() {
702
696
  var css = row.getStyle('row', _extends({}, styles.row));
703
697
  if (cols > 0) {
@@ -712,29 +706,38 @@ function UIListRow(props) {
712
706
  edit: true
713
707
  });
714
708
  };
715
- if (!original.click) {
716
- return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
709
+ var ListItem = function ListItem() {
710
+ var _useState2 = React.useState(0),
711
+ updateIndex = _useState2[0],
712
+ setUpdateIndex = _useState2[1];
713
+ row.update = function () {
714
+ setUpdateIndex(++updateIndex);
715
+ };
716
+ if (!original.click) {
717
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
718
+ style: getRowStyle(),
719
+ children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
720
+ scope: row,
721
+ crud: row.crud,
722
+ children: props.children
723
+ })
724
+ }, "k-" + index);
725
+ }
726
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
717
727
  style: getRowStyle(),
728
+ underlayColor: 'transparent',
729
+ onPress: function onPress(e) {
730
+ e.stopPropagation();
731
+ onClick(item);
732
+ },
718
733
  children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
719
734
  scope: row,
720
735
  crud: row.crud,
721
736
  children: props.children
722
737
  })
723
738
  }, "k-" + index);
724
- }
725
- return /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableHighlight, {
726
- style: getRowStyle(),
727
- underlayColor: 'transparent',
728
- onPress: function onPress(e) {
729
- e.stopPropagation();
730
- onClick(item);
731
- },
732
- children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
733
- scope: row,
734
- crud: row.crud,
735
- children: props.children
736
- })
737
- }, "k-" + index);
739
+ };
740
+ return /*#__PURE__*/jsxRuntime.jsx(ListItem, {});
738
741
  }
739
742
  var stylesList = /*#__PURE__*/reactNative.StyleSheet.create({
740
743
  row: {