react-crud-mobile 1.3.412 → 1.3.413

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.
@@ -1076,7 +1076,7 @@ function UIList(props) {
1076
1076
  var add = reactCrudUtils.ComponentUtils.getDefine(props, 'add');
1077
1077
  var hideAddWhenEmpty = original.hideAddWhenEmpty;
1078
1078
  var hideEmpty = original.hideEmpty;
1079
- //v4
1079
+ //v2
1080
1080
  var getStyle = function getStyle(key, extra) {
1081
1081
  return scope.getStyle(key, _extends({}, extra, styles[key]));
1082
1082
  };
@@ -1158,18 +1158,13 @@ function UIList(props) {
1158
1158
  }
1159
1159
  return /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
1160
1160
  style: getContainerStyle(),
1161
- children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), /*#__PURE__*/jsxRuntime.jsx(reactNative.FlatList, {
1162
- data: items,
1163
- renderItem: function renderItem(_ref) {
1164
- var item = _ref.item,
1165
- index = _ref.index;
1166
- return /*#__PURE__*/jsxRuntime.jsx(UIListRow, {
1167
- index: index,
1168
- item: item,
1169
- scope: scope,
1170
- children: props.children
1171
- });
1172
- }
1161
+ children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), items.map(function (item, i) {
1162
+ return /*#__PURE__*/jsxRuntime.jsx(UIListRow, {
1163
+ index: i,
1164
+ item: item,
1165
+ scope: scope,
1166
+ children: props.children
1167
+ });
1173
1168
  }), isShowAdd() && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1174
1169
  children: add
1175
1170
  })]